This pull request fully replaces the entire architecture of the project, in a desperate attempt to improve code quality and stability.
Features:
Is it stable now? no.
Is it ready to be pushed? no.
Is all of the code that actually applies to the vision of the product jumbled together with useless lines in a 3000 line file? no.
So I'd say it's worth it.
This also removes a large portion of the discord bot in favor of the web interface
Things that need to be changed before pushed:
[x] A bug where the ready phase sends the glhf message 4 times (literally no clue how this happened)
[x] A feature-complete web frontend (unrelated to this repo (yet))
[x] 1/100 chance the bot says golf instead of glhf
[x] Needs to be tested in a real match (at least one 2v2 match, and one 1v1 match)
[ ] Users spamming commands/ready should not duplicate responses (it currently does)
[ ] Bug with rolling where it ignores some messages (may be fixed with the spamming one)
[ ] Tests for bracket match handlers written (the whole point of this architecture rework is so I can write tests)
[ ] Timers need to be enforced (currently does not exist)
[ ] Removal of /create-match command from discord bot (currently does exist)
⚠THIS IS A FULL REWRITE OF THE PROGRAM ⚠
This pull request fully replaces the entire architecture of the project, in a desperate attempt to improve code quality and stability.
Features:
Is it stable now? no. Is it ready to be pushed? no. Is all of the code that actually applies to the vision of the product jumbled together with useless lines in a 3000 line file? no.
So I'd say it's worth it.
This also removes a large portion of the discord bot in favor of the web interface
Things that need to be changed before pushed:
/create-match
command from discord bot (currently does exist)