discord bot that accepts commands from chat and tallies points and calculates reward tiers
so basically you git clone https://github.com/AisiYidingbai/pointinator.git
this repo, install python, and then pip install -r requirements.txt
, discord.py, numpy, and pandas, and run it.
(to update requirements.txt use pipreqs (pip install pipreqs
) inside project folder)
cd pointinator
and then copy-paste the secret key into secret.py
, bai'll tell you my secrets if you ask nicely
to stop secret.py
from updating when you update the repo with git pull origin
, add it to your gitignore
: echo secret.py >> gitignore
the syntax is python pointinator.py -o /path/to/files/
and you'll see the dev instance go up in the discord test server automatically
you need to specify a path where the sheets will live with -o
, if the sheets aren't there already then pointinator will make them
same as above but you need to also create a bot user, invite it to your server, and generate a secret key for it so that it can log in
- go to discord developer portal https://discord.com/developers/applications/ and log in with a user that has manage server permissions in the server you want to use pointinator in
- in applications, create a new application, give it a name, and agree to the tos
- in the settings for your app, go to oauth2, give it the "bot" scope, and give it the "manage roles", "read messages/view channels", "send messages", and "manage messages" permissions
- allow the same permissions in the bot tab and also enable the "message content" privileged gateway intent
- go to the bottom and copy-paste the generated url into your browser. log in again and choose the server you want to use pointinator in
- you'll see pointinator joined. back in bot settings, scroll back up and generate a token with "reset token", note it down. copy-paste it into the
key
variable insecret.py
in this repo. this is how it logs in - go to general information and mess around with the settings in there to personalise your pointinator
- start up an instance of pointinator with
python pointinator.py -o /path/to/files
. it'll log in to your server - np enjoy
git clone https://github.com/AisiYidingbai/pointinator.git
cd pointinator
pip install -r requirements.txt
make an app https://discord.com/developers/applications/
give it bot scope; manage roles, read messages/view channels, send messages, and manage messages permissions; and message content privileged gateway intent, and then invite it to your server
put the bot token in secret.py
echo secret.py >> gitignore
python pointinator.py -o /path/to/files/
to update pointinator: git pull origin
diy but you can google crontab and/or systemd unit files. idk about windows prob task scheduler. gl