This a very simple bot to keep track of scores or any kind of point system. You provide the bot with a Google spreadsheet and then anyone can tally up their own points. Admins can also control other people's points.
-
Add to server from https://discordapp.com/api/oauth2/authorize?client_id=518608155907719168&permissions=0&scope=bot
-
Familiarize yourself with the commands using
p!help
. -
Add yourself and other any other users you want as admins with
p!admin <user>
. -
Set up google variables and auth with the commands
p!key <key> <value>
andp!gauth
.GOOGLE_SHEET_NAME
example:Page1
.GOOGLE_SHEET_ID
example:1dZHWlxlr-CbPocQ2DB9kQH3Y7TnShSyU-N7v_wsRxjv
.
-
If you run into any issues you can contact me at
warau#0438
and I'll see if I can help you out.
-
Make a
config.json
file in project root that looks like this example:{ "HOST_URI": "http://82.120.11.72", "DISCORD_TOKEN": "NTF54Ti33Ta1OzY1ODQzOeg2.DugcYQ.Oqsr4cbrfm2A8B_kYrOU2b2Obvi", "GOOGLE_CLIENT_ID": "201235522132-12lm7bdba46f21e2i5eadrca2mfjkpf0.apps.googleusercontent.com", "GOOGLE_CLIENT_SECRET": "n_Ej_KZp5oIo2ggo_2d2FFew", "GOOGLE_PROJECT_ID": "pointo-1553760236124", "TWITCH_CLIENT_ID": "yuth9hdd21zzs2vev2yo84wxy21rop" }
-
Install dependencies:
yarn
-
Build and run the bot:
yarn start