mrshmllow / gwaff

πŸ“ˆ Mee6.xyz xp graphing

Home Page:https://gwaff.bwac.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“ˆ Mee6.xyz xp graphing

image

code sytle Codacy branch grade

Edit: this repo is a disgrace, using json as a database? the file gets so big.. Anyway. I'm sure it's useful for someone.

Why is it called 'gwaff?'
- asked no one ever

A mee6 xp graphing python program using matplotlib.

Generate line plots and bar charts from mee6 xp data!
See your xp gain over time, and keep track of your highest talkers!


Originally made for the Mumbo Jumbo Discord server. So it might need a few modifications to get it to work how you'd like it too.

Steps to use for your own server

  1. "Fork this" or download it and use it locally.
  2. Next, edit the config.yml
darkmode: true # dark mode or not
title: "GWAFF V2"
bottom_message: "\nCheck out the github on bwac2517/gwaff"
plot:
  range: 60 # how many users to include in the plots
  minium_xp: 500 # anyone with a xp gain below this will not be included in the plots
  rank_range: 20 # the interval it starts a new graph
bar:
  range: 15 # how many users to include in the bar graph
versus: # the versus plot, change to just 0000000000000 to be blank
  - 298294667219435521
  - 387259938977742849
  - 477148794861912084
  - 724378805728313395
data:
  range: 300
  1. You should make a venv.
    Install dependencies with pip install -r requirements.txt

  2. Run python3 gwaff.py --store every day to collect xp data (at the same time of day to keep consistency) (Use a github action for this to automate it)
    This is saved in gwaff.json strongly recommended you use git incase you want to roll back any unwanted saves

  3. You can generate a graphs with python3 gwaff.py --plot --save, or use python3 gwaff.py --store --plot --save to save mee6 data AND plot it at the same time.
    you can use python3 gwaff.py --store --plot --save --post {A discord webhook url} to post to discord at the same time.

  4. RECOMMENDED

  • Copy this gist to your fork in the path .github/workflows/data-collection.yml
  • In your fork settings, go to "Secrets" and make one called WEBHOOK_URL (use that exact name)
  • Make a discord channel and create a webhook, copy the url for the webhook and enter it into the WEBHOOK_URL

About

πŸ“ˆ Mee6.xyz xp graphing

https://gwaff.bwac.dev

License:MIT License


Languages

Language:Python 100.0%