| Commit message (Collapse) | Author | Lines |
|
|
|
- when the user uses the command to stop the game, the bot fails to reply back with the winners list. This is because the varibale player_data is being initialised to {} at the start of the command. I solved this by making a player_data variable in the cog __init__() with the channel id being the key and dict as value
|
|
|
|
|
|
|
|
|
|
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.
|
|
category questions.I have disabled hints for general(cant make up any hints).The score is now calculated on time based answer.I am also sending information about the topic/thing on which the question has been asked.Will add more questions in a couple of days
|
|
|
|
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.
|
|
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]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
hacktoberstats cog handled in separate PR
|
|
Bot root, seasons cog, easter cogs, evergreen cogs, halloween cogs
|
|
|
|
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
|
|
Comprehension cleanup
Co-Authored-By: Mark <[email protected]>
|
|
Relint
|
|
* Fix missing await preventing a non-started game from cancelling when timing out when waiting for the game to start
* Remove restriction on minimum number of players required for the game to run. This applies to both starting the game and for ending the game if players leave; the game can now be played solo.
* Prevent cancellation of the game if the player who initiated the game leaves but there are still people playing
* Allow Moderation staff to cancel a game they are not part of
* Fix issue where a game is not being properly ended if all the players leave
|
|
* Clean up type hinting
* Fix command typo in account linking helper message
* Add constant & generic handling for number of PRs to shirt
* Add constant & generic handling for event year in GH API query
|
|
|
|
|
|
Kaizen!
|
|
|
|
|
|
|