Server info is a small bot designed to display information about your server stats (I mean an actual server/computer and not a discord server). I made this because I couldn't find anything that was prebuilt for me to just run.
You need: 0) Python 3.8 (if you have built the wheels for discord.py for 3.9 then you should be able to use that).
- discord.py version 1.5.1 or later.
- psutil
- uptime
- Ensure that you have created a bot account.
- Open
monitor_setup.py
in your editor. - Replace the assigned value for
CHANNEL_ID
. - Add your bot token in
client.run('token')
. - Wait for the bot to print the message ID and copy it.
- Ensure that you have completed part one.
- Open
server_monitor.py
- Replace the values assigned to
CHANNEL_ID
andMESSAGE_ID
with the ones that the setup script produced. - Start your bot!
A pm2 file (monitor-pm2.json
) is included to keep the bot online.
I would call myself a "basic intermediate" user of python so my code could probably be made better. Feel free to open a PR.
For any help, you can join my small discord server My discord is: mesub#0556