TheComputerM / homeserver-bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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=<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.

About

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


Languages

Language:Rust 100.0%