GameTracker bot is a bot that keeps track of all the games being played by different people in your discord server and how long they have been played for on a month by month basis.
EXAMPLE:
discord_user: !topgames
GameTracker: Top 10 games played in <current_month> (in hours):
ApexLegends - 18.77 hours played
LeagueofLegends - 15.43 hours played
Fortnite - 8.56 hours played
Minecraft - 8.09 hours played
Overwatch - 6.46 hours played
GameTracker was built to achieve two things:
- To allow server owners of large communities to (somewhat) answer "What does your community play?".
- To allow users to make decisions on what to play based on what the other people in the server are playing.
!topgames
- displays the games with the highest playtime in the current month.
!topusers
- displays the users that have the highest playtime in the current month.
!mygames
- displays your playtime for this month.
!help
- output is above
- python 3.6
- virtualenv
- pip
Set up virtualenv
virtualenv -p $(which python3) .venv
source .venv/bin/activate
To exit the virtualenv just run
deactivate
Install dependencies
pip install -r requirements.txt
Next, add your discord token in the config.py file.
Then, run:
python main.py
- The bot is not 100% accurate not quite worked out the root cause but its inconsitent to say the least
- Bot doesnt work with the most recent version of the discord.py library, for now please make sure your using version 1.4.2
- !topusers seems to be a bit bugged but again, im not sure why, it used to work fine
Game suggestions???
If you'd like to add GameTracker to your server or have any critisisms/ideas please PM Gurg#6315 on discord or email me at gurg@edingamesoc.co.uk