aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/trivia_quiz.py (follow)
Commit message (Collapse)AuthorAgeLines
* Deseasonify: rename `seasons` pkg to `exts`Gravatar kwzrd2020-03-28-303/+0
| | | | | | | | | It is believed that this is now a more logical name for the package, as extensions no longer bind to seasons. Internally, packages are still grouped into seasonal sub-packages. There are quite a few, and it makes sense to group them by a common theme that inspired their functionality.
* Update bot/seasons/evergreen/trivia_quiz.pyGravatar Rohan_Iceman2019-12-20-1/+1
| | | Co-Authored-By: Mark <[email protected]>
* Update bot/seasons/evergreen/trivia_quiz.pyGravatar Rohan_Iceman2019-12-20-1/+3
| | | Co-Authored-By: Mark <[email protected]>
* fixed lint errorsGravatar RohanJnr2019-12-20-1/+1
|
* Merge branch 'quiz_fix' of https://github.com/RohanJnr/seasonalbot into quiz_fixGravatar RohanJnr2019-12-20-6/+18
|\
| * Trivia: fix spelling error in category embed footerGravatar MarkKoz2019-12-17-1/+1
| |
| * Trivia: fix concatenation of winner mentionsGravatar MarkKoz2019-12-17-3/+1
| |
| * Trivia: space out some of lines of codeGravatar MarkKoz2019-12-17-3/+17
| |
* | In this commit:Gravatar RohanJnr2019-12-20-12/+13
|/ | | | | | | - I cleaned up some residue code - The quiz now selects a random category if None provided - Updated doc strings - Displaying the category when the quiz is starting
* fixed a indent errorGravatar RohanJnr2019-12-16-7/+6
|
* Merge branch 'quiz_fix' of https://github.com/RohanJnr/seasonalbot into quiz_fixGravatar RohanJnr2019-12-16-1/+1
|\
| * Update bot/seasons/evergreen/trivia_quiz.py Gravatar Rohan_Iceman2019-12-02-1/+1
| | | | | | | | | | adding space around special chars Co-Authored-By: Mark <[email protected]>
* | Fixed indentation, the category_embed function is no longer a property.Gravatar RohanJnr2019-12-16-28/+22
|/
* added a new command to stop the quiz and removed the cooldown on the quiz ↵Gravatar RohanJnr2019-11-29-6/+15
| | | | command
* Grammar fixesGravatar Joseph Banks2019-11-22-19/+16
|
* added cooldown to the quiz command and more refinement and also tested.Gravatar RohanJnr2019-10-20-1/+2
|
* added a cool down per channel to the quiz commandGravatar RohanJnr2019-10-19-2/+6
|
* Made some language corrections in the json file and also made seperate ↵Gravatar RohanJnr2019-10-18-21/+37
| | | | functions for the start and end quiz. Added another check to check if the game is still running before sending the answer.
* fixed bugs such as incorrect time to send the category embed, game will no ↵Gravatar RohanJnr2019-10-17-16/+18
| | | | longer run again if stopped n stuff.
* Updated the code as per the suggestions and they are the following:Gravatar RohanJnr2019-10-13-10/+12
| | | | | | - Corrected all typos. - the quiz command is now a command group to allocate the leaderboard command(a command which shows the leaderboard for the current bot session). - Few other refinements with language and stuff.
* fixed lint errorsGravatar RohanJnr2019-10-07-1/+1
|
* added function annotations to new commandGravatar RohanJnr2019-10-07-1/+1
|
* Corrected a few typos in the json file and also the following refinements ↵Gravatar RohanJnr2019-10-07-26/+56
| | | | | | | for the quiz game: New scoreboard for every game. Store overall score board which refreshs when bot restarts.
* Applied suggestions from code reviewGravatar Rohan_Iceman2019-10-02-3/+3
| | | Co-Authored-By: scragly <[email protected]>
* removed commented out codeGravatar RohanJnr2019-10-02-1/+0
|
* Worked on the requested changes and also made a few other changes:Gravatar RohanJnr2019-10-02-71/+68
| | | | - 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
* added function annotations to the check methodGravatar RohanJnr2019-10-01-1/+1
|
* added some questions to general, for now users can only access general ↵Gravatar RohanJnr2019-09-30-10/+32
| | | | 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
* made the request changes which involves fixing some grammer, following PEP8 ↵Gravatar RohanJnr2019-09-23-29/+17
| | | | format, removed a debug statement and also some minor stuff.
* added function annotationsGravatar RohanJnr2019-09-23-8/+12
|
* fixed linting errorsGravatar RohanJnr2019-09-23-4/+3
|
* corrected my spelling mistake on the file nameGravatar RohanJnr2019-09-23-0/+225
|
* Modified the code drastically for the quiz game:Gravatar RohanJnr2019-09-23-266/+0
| | | | | - 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.
* using self.categories insted of list(self.categories.keys())Gravatar RohanJnr2019-09-11-2/+2
| | | | | | Pending work: - Function annotation - Announcement of multiple winners (if they have same points).
* Made the following changes:Gravatar RohanJnr2019-09-11-0/+266
- 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