CursedAtom.dev

salad-discord-bot

Discord bot to help you monitor your machines on Salad

How to use:

  1. Install dependencies (this needs to be done on every machine you plan to monitor):
    pip install hikari
  2. 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.

    YouTube video thumbnail

  3. Fill in lines 8-10

    Code snippet

    • 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 ?status command
  4. 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:

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.