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
- Host: GitHub
- URL: https://github.com/thecomputerm/homeserver-bot
- Owner: TheComputerM
- Created: 2023-07-26T07:16:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T02:22:09.000Z (over 2 years ago)
- Last Synced: 2025-01-23T11:20:49.324Z (over 1 year ago)
- Language: Rust
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.