SneazeR541 / sc-snipers-remastered

0 stars 0 forks source link

Automate stat process #1

Closed SneazeR541 closed 5 years ago

SneazeR541 commented 5 years ago
  1. Update snipers map so it displays a string per player in the leaderboard after the match ends (like what Rob did before, should be ok)
  2. Update bot so it prints the match ID out at the end when the match has been successfully recorded (made that change just now, ez)
  3. Make new command in bot called !recordstats or something that lets an admin list the players and their strings:
    !recordstats cjnw3ppx501ho0176nd3o9u3e
    Red 3oD[LaZeR] 400030006003
    Orange 3oD[oG] 4000200004002

    and so on, and it splits the string out into kills/deaths/bonuses/flags and saves it to the database

  4. Make new command in bot called !stats <player> that lets anyone call !stats <player> to get a summary of their stats. Could easily calculate average K/D, bonuses, flags, and then if we want we can go further and list "toughest" and "easiest" opponents
  5. Make a new text channel called #stats

Then, every time a match finishes:

  1. One player goes to #stats and posts SSes of the stats strings and the end-game screen (to see what player had what color)
  2. An admin copies the strings over to the !recordstats command I listed above and DMs the bot to register that match

Also, look into allowing every player to submit stats, not just admins. Perhaps we can have a hash that ensures the validity of the data?

SneazeR541 commented 5 years ago

Note, also need to make sure we can grab stats for players who leave (as long as there's < 5 minutes left).