aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2019-10-02removed commented out codeGravatar RohanJnr-1/+0
2019-10-02Worked on the requested changes and also made a few other changes:Gravatar RohanJnr-147/+112
- 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
2019-10-01Point setup guide to site wikiGravatar S. Co1-1/+1
2019-10-01Move PR template so GH can find it againGravatar S. Co1-0/+0
2019-10-01added function annotations to the check methodGravatar RohanJnr-1/+1
2019-10-01added 10 more questionsGravatar RohanJnr-0/+90
2019-09-30Disable announcements and add hacktober icon.Gravatar Leon Sandøy-5/+11
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.
2019-09-30added some questions to general, for now users can only access general ↵Gravatar RohanJnr-11/+161
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
2019-09-26Update flake8-annotation pin & relintGravatar S. Co1-19/+38
2019-09-23made the request changes which involves fixing some grammer, following PEP8 ↵Gravatar RohanJnr-29/+17
format, removed a debug statement and also some minor stuff.
2019-09-23added function annotationsGravatar RohanJnr-8/+12
2019-09-23fixed linting errorsGravatar RohanJnr-4/+3
2019-09-23corrected my spelling mistake on the file nameGravatar RohanJnr-0/+0
2019-09-23Modified the code drastically for the quiz game:Gravatar RohanJnr-267/+227
- 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.
2019-09-23Reflect persist module changes in hacktober cog.Gravatar scragly-2/+2
Co-Authored-By: Sebastiaan Zeeff <[email protected]>
2019-09-23Use mkdir exists kwarg instead of checking existing ahead of time.Gravatar scragly-4/+2
2019-09-23Improve func name, example, directory managementGravatar scragly-9/+37
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.
2019-09-23Check explicitly if file exists rather than any existing path.Gravatar scragly-1/+1
Co-Authored-By: Mark <[email protected]>
2019-09-23Change volume instruction to single line.Gravatar scragly-2/+1
2019-09-23Move pipenv install above file copy, add comments, move to python slim image.Gravatar scragly-4/+8
2019-09-23Use standard DockerHub connection.Gravatar scragly-1/+1
Co-Authored-By: Mark <[email protected]>
2019-09-20Add better explanatory docstring and example for persist.datafile.Gravatar scragly-1/+17
2019-09-20Update DockerV2 details and remove explicit login.Gravatar scragly-13/+6
2019-09-19Add persistent datafile utils.Gravatar scragly-1/+27
2019-09-19Prevent empty JSON raising an exception.Gravatar scragly-0/+1
2019-09-19Remove egg_huntGravatar scragly-671/+0
2019-09-19Cleanup Dockerfile and CI Build & Push stageGravatar scragly-58/+53
2019-09-11using self.categories insted of list(self.categories.keys())Gravatar RohanJnr-2/+2
Pending work: - Function annotation - Announcement of multiple winners (if they have same points).
2019-09-11Made the following changes:Gravatar RohanJnr-37/+40
- 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
2019-09-11Fix incorrect merge conflict resolutions, lint remaining itemsGravatar S. Co1-28/+34
2019-09-11Dumb kosa forgot to relint after making a small changeGravatar kosayoda-1/+1
2019-09-11Add more uwu conversionsGravatar kosayoda-0/+1
2019-09-11Add embed conversion functionality to .rcase, small fixesGravatar kosayoda-12/+29
2019-09-11Add embed conversion functionality to .uwuGravatar kosayoda-14/+61
2019-09-09Lint remaining filesGravatar S. Co1-58/+62
hacktoberstats cog handled in separate PR
2019-09-09Initial linting passGravatar S. Co1-243/+261
Bot root, seasons cog, easter cogs, evergreen cogs, halloween cogs
2019-09-09Add flake8-annotations to dev dependenciesGravatar S. Co1-6/+18
2019-09-06Update bot/seasons/evergreen/snakes/utils.pyGravatar S. Co1-1/+1
Co-Authored-By: Mark <[email protected]>
2019-09-06Fix bug in Candy Collection CogGravatar S. Co1-5/+6
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.
2019-09-06Fix broken cancellation logic for waiting SaL gameGravatar S. Co1-5/+1
Previous logic allowed for any non-playing member to cancel the game
2019-09-06Apply suggestions from code review Gravatar S. Co1-3/+3
Comprehension cleanup Co-Authored-By: Mark <[email protected]>
2019-09-05Fix misconfigured flake8 so docstrings are properly lintedGravatar S. Co1-32/+33
Relint
2019-09-04Update Snakes and LaddersGravatar sco1-37/+43
* 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
2019-09-04Hacktober cog cleanupGravatar sco1-25/+24
* 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
2019-09-04Resolve alias conflict between minsweeper & monster surveyGravatar sco1-1/+1
2019-09-03Use pipenv lint script for pre-commit hookGravatar S. Co1-12/+8
2019-09-03Add dependency pinning & relockGravatar S. Co1-78/+77
Kaizen!
2019-09-03Update contrib doc for allowing edits from maintainersGravatar S. Co1-0/+3
2019-08-29Improve wording of message conversion functionGravatar kosayoda-4/+7
2019-08-29Remove redundant command groupGravatar kosayoda-15/+6