An open API service indexing awesome lists of open source software.

https://github.com/thecomputerm/homeserver-bot

A discord bot written in rust that manages and monitors my home server
https://github.com/thecomputerm/homeserver-bot

Last synced: about 1 year ago
JSON representation

A discord bot written in rust that manages and monitors my home server

Awesome Lists containing this project

README

          

This is a discord bot made in rust that I use to manage my old laptop that I have converted into my home server.

## Why

I could not get a static IP and I don't want to pay for dynamic dns services such as [no-ip](https://www.noip.com/) as I don't know how I will use this server.

## Usage

No not run this in a docker container as this needs direct machine access to be able to run some command line scripts.
Use something like pm2 or a custom systemd service to start up the executable

The homeserver-bot.service would look something like this:

```
[Unit]
Description=Discord bot to get a server overview
After=network.target

[Service]
Type=idle
User=
Environment="DISCORD_TOKEN=your_discord_token_here"
ExecStart=/path/to/homeserver-bot
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target
```

## Commands

- `/ping`: to see if the server is alive.
- `/system`: prints out information like uptime, temperature etc (basically neofetch)
- `/ip`: prints out the public and local IP/IPv6.