|  | Commit message (Collapse) | Author | Age | Lines | 
|---|
| ... |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | | format, removed a debug statement and also some minor stuff. | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | - Using a while loop to run a game rather than bunch of the functions calling each other.
- using wait_for() to send hints, answers and to move to next questions. | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Pending work:
- Function annotation
- Announcement of multiple winners (if they have same points). | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | - Linting
- renamed self.games to self.running_games
- using self.running_games insted of list(self.running_games.keys()) to loop over its keys.
- Renamed the file to trivia_quiz | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | the following features: quiz has the following features:
- There wont be any options to the questions asked, the users have to type the answer in the chat and the bot will pick up the right anwer
- If 3 questions have not been answered in a row, the quiz will be brought to a halt assuming inactivity.
- There are also hints in this game! A hint will be sent after 10s after the question has been sent.Each question has a maximum if 2 hints.
- The bot checks for the closest answer rather than the exact one(Incase of typoes in the users answer | 
| | | | | | |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | | Also, pride facts are posted as embeds now | 
| | | | | | |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | | I don't understand why these linter issues don't come up when I run flake8 myself | 
| | | | | | |  | 
| | | | | | |  | 
| | | | |/  
| | |/| |  | 
| | | | | |  | 
| | | | | |  | 
| | | | | 
| | | | 
| | | | 
| | | | 
| | | | | Could be improved by writing a message that says:
"@command_invoker's drag queen name is <generated name>" | 
| | |/ /  
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | |   
| | | | The names are stored in a text file, since they're basically just a list, and
json seems like overkill for this case. In any case switching over to json
later would be easy. The names could be separated into first and last names in
order to generate more combinations, but that would break the wordplay that
many of the names have.
The names were taken from
https://www.fantasynamegenerators.com/drag-queen-names.php
as permitted by the footnote on the page. | 
| | | | |  | 
| | | | |  | 
| | | | |  | 
| | | | |  | 
| | | | |  | 
| | | | |  | 
| | | | |  | 
| | | | |  | 
| |/ / |  | 
| | | 
| | 
| | 
| | 
| | 
| | 
| | 
| | | The Halloween season was currently configured to run with spooky
icons and to announce a terrible, contentless announcement.
This has been disabled and the neon hacktoberfest icon has been
placed in its stead. | 
| |\ \ |  | 
| | | | |  | 
| | |\ \  
| | | | 
| | | | | Modify text of embeds for text-modify commands | 
| | | | | |  | 
| | | |\ \  
| | | | | 
| | | | | 
| | | | | | into text-modify-embeds | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | 
| | | | | 
| | | | | | Co-Authored-By: Sebastiaan Zeeff <[email protected]> | 
| | | | | | |  | 
| | | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | 
| | | | | | Function name has been changed to `make_persistent` after prompt by @lemonsaurus
asking for a more descriptive name. Thanks @MarkKoz for providing the alternate
name.
During local testing, the `data` directory doesn't exist yet. In prod, this
isn't an issue as the persistent volume is mounted at that location. To make
local testing more convenient, the directory is checked and made if not found.
Persistent data files will be placed in a seasonal subdirectory so long as they
have a valid season name somewhere in their path, otherwise they will be placed
directly in the data directory.
Added a note to docstring to avoid same-named files in the same seasons or it
will conflict with each other in the persistent data directory.
The example was extended a little bit to make it both actually valid if tested
and hopefully make it easier to understand what's going on. | 
| | | | | | 
| | | | | 
| | | | | | Co-Authored-By: Mark <[email protected]> | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | |  | 
| | | | | | |  | 
| | |\ \ \ \  
| | | |/ /  
| | |/| | |  | 
| | | | | | 
| | | | | 
| | | | | | Co-Authored-By: Mark <[email protected]> | 
| | | | | | 
| | | | | 
| | | | | | When the ten_recent_msg helper coro is called, it grabs the most recent message by ID, but some of the following lines assume this object is a Message ID, not an integer. | 
| | | | | | 
| | | | | 
| | | | | | Previous logic allowed for any non-playing member to cancel the game |