Hi all, so i made a thing and thought I'd share.
Long story short, I made a bot for our discord server that can list the stats of our members over time. This works by pulling each members data from the API once a day and comparing it to previous days to see how it changed in between.
As a very simple example, if I ask the API its tells me my total xanax taken - lets say its 100. If i ask again 2 days later it tells me my total is now 105. So this bot looks at those two stats and subtracts the older date from the most recent date and ends up with 5 xan taken over 2 days.
It can do this for a whole bunch of stats that the API serves up, including energy trained for each stat and total energy trained (the sum of all 4 stats).
I have the bot working for 3 facs now - it determines which data to present based on which server the message comes from. It can display data for these three facs since it joined their server - so 4 days so far and when you ask the bot you can choose how many days to compare.
Anyway thought someone might like this.
Pic of test command and list of keys for data the bot can track:
[image: i.imgur.com]
What it returns - this a list of all fac members and how many energy refills they used in the last 4 days. I blurred out the names.
[image: i.imgur.com]
Long story short, I made a bot for our discord server that can list the stats of our members over time. This works by pulling each members data from the API once a day and comparing it to previous days to see how it changed in between.
As a very simple example, if I ask the API its tells me my total xanax taken - lets say its 100. If i ask again 2 days later it tells me my total is now 105. So this bot looks at those two stats and subtracts the older date from the most recent date and ends up with 5 xan taken over 2 days.
It can do this for a whole bunch of stats that the API serves up, including energy trained for each stat and total energy trained (the sum of all 4 stats).
I have the bot working for 3 facs now - it determines which data to present based on which server the message comes from. It can display data for these three facs since it joined their server - so 4 days so far and when you ask the bot you can choose how many days to compare.
Anyway thought someone might like this.
Pic of test command and list of keys for data the bot can track:
[image: i.imgur.com]
What it returns - this a list of all fac members and how many energy refills they used in the last 4 days. I blurred out the names.
[image: i.imgur.com]