PhlexPlexico/G5-Bot

[Feature Enhancement] Enable Check Auths

PhlexPlexico opened this issue · 2 comments

From #5.

The plan for this enhancement will gather the connected Steam IDs from people's Discord accounts. It will be required for a user to join a match. Each time the match is created and the teams are chosen, the bot will update the auths blob in the team table to each SteamID on the teams. That way, we can keep get5_check_auths 1 in the live.cfg or knife.cfg so when users join in warmup, there won't be restrictions.

Also included will be an admin only command (and consequently, a new setting in the file) that will allow users to add steam64 IDs to the server after the fact (if a user does not have a steam account linked). It should be something like [p]matchadd team1/2 STEAM64 which will add the user to a given team, sending the command via Rcon.

This is definitely something good for someone to work on if they want to get their feet wet with Python, Peewee, and Rcon commands within a discord.py wrapper. I'll probably start work on this, and may comment some of the gotcha's here as well.

Feature branch has been created for this. If someone would like to test it out and see if it adds the proper teams to the database, that would be great.

My old league doesn't seem to use this bot as much, but should someone want to use this, please test out the branch that contains the Steam auth adding into teams, would be neat to see if it works!