salad-discord-bot
Discord bot to help you monitor your machines on Salad
How to use:
-
Install dependencies (this needs to be done on every machine you plan to monitor):
pip install hikari -
Create a Discord Bot and make sure to note down the token. You will need it later.
- Add the Discord Bot to a server you're in (this lets the bot send you a DM)
- This video will showcase how you make a bot and add it to a server. You should just give it the "Bot" scope and ignore the permissions, they're not necessary for this project.
-
Fill in lines 8-10
- Add your Discord Bot Token.
- Add your Discord User ID.
- Watch this video for help finding your User ID
- Add a name for the machine (this needs to be unique if you plan to use this on multiple machines). Keep it reasonable, you'll need it later for the
?statuscommand
-
Run the script on each machine you wish to monitor, making sure to change the Machine Name for each
python.exe run_bot.py
Commands:
?machines-- Lists every machine that is currently being monitored. It sends a message for each machine, so it may get a bit spammy if you have a lot of machines?status MachineName-- Lists the status of the machine named?status all-- Lists the statuses of every machine in a truncated format
I had a ?help command but it would get spammy because every machine would respond. It's currently commented out, but you can uncomment it on one of the machines if you wish to have a ?help command.