Many random features.
Probably the nicest is graphing stats about channel activity, but it also bugs you when channels are dragged out of order, and when people try to write secret messages as reactions to ancient messages. And a NASA APOD thing too.
Built with python 3.7 and discord.py, using matplotlib.
Note that in its current implementation, the graphing occurs in the main bot thread. This is blocking, and is bad, and the bot will not respond while it occurs. Eventually I may improve that.
This uses pipenv so make sure you have that installed. The bot was built for linux, so should work fine there and on macs. There's a chance that, as ever, making the code run on windows could have some hiccups.
In a terminal, run git clone https://github.com/random-person-001/discordstats.git && cd discordstats
You'll need a discord token to get the bot running. Rename exampleconfig.toml
to config.toml
and put the token in there.
Then run
pipenv install
and pipenv run python src/main.py
Your bot should hopefully be running! Invite it somewhere to test with the link https://discordapp.com/api/oauth2/authorize?client_id=LONGNUMBER&scope=bot, replacing LONGNUMBER
with your bot's discord ID.