sir-lancebot
sir-lancebot copied to clipboard
Madlibs - Add "End Game" and "Choose for me" buttons
Relevant Issues
Closes #1000
Description
- Added an "End Game" button to end the game in case a user decides not to play after starting a game.
- Added a "Choose for me" button that randomly chooses a word from the madlibs_word_bank.json file and adds it to the Madlib in case the user can't think of a good word to use for the given part of speech.
- As I was writing the code for the "Choose for me" button, I realized that it wouldn't make sense not to add a cooldown for the button so the user cannot spam it, so I added that as well, although it wasn't part of my original proposal in the issue.
- Also not part of the original issue but changed the timeout from 60 seconds to 120 seconds because 60 seconds felt too short to me.
- Had to also make a few minor changes to the original implementation of the game (which I wrote) to make it work with the new buttons.
Did you:
- [x] Join the Python Discord Community?
- [x] Read all the comments in this template?
- [x] Ensure there is an issue open, or link relevant discord discussions?
- [x] Read and agree to the contributing guidelines?