Closed mazziechai closed 3 years ago
Exciting! Can I offer two suggestions?
Sounds good, thanks for your input.
Out of curiosity, why did you remove Match.active
? I figured that when you delete a match, you could just mark it inactive. That way if there was an accidental deletion, the data would still be there.
I actually don't remember why I did... I'll change it back.
Since registration with the bot is out of the scope of #5, I think it would be appropriate to leave handshaking to another issue/PR. In order to perform the handshake over Discord, the bot would need to associate Discord accounts with players in the database, which is essentially registration. I'll go ahead and mark this PR ready and get to work on basic Discord registration and handshaking next.
Awesome. Does this PR include some test code? Idk if you could actually have two bots to run an end to end test. One bot to post on discord, and then donguri gaeru to react.
I could try, though tests with Discord bots aren't super common due to how much of a pain it is.
I think it would be best to reserve testing to things separated from the Discord API, as creating tests would require a lot more effort than it is to currently just start up the bot and test it manually.
A Player is a name or Discord user, linked to an appropriate entry in the database. A Match has an ID, two Players, their scores, and the date of when the match was played.
This pull request aims to implement the following:
"Handshaking" if the match being created was between two Discord users, where the users are provided an emoji reaction to use to communicate sportsmanshipCloses #5.