aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py (unfollow)
Commit message (Collapse)AuthorLines
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-11Fix incorrect merge conflict resolutions, lint remaining itemsGravatar S. Co1-28/+34
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
2019-08-24changed board revealing at end of games.Gravatar vivax3794-3/+12
2019-08-21fixed import order.Gravatar vivax3794-1/+1
2019-08-21making sure a game is always has a way to win no matter how hard it is.Gravatar vivax3794-1/+5
2019-08-20Remove missed return docGravatar kosayoda-5/+1
2019-08-20Fix lint errorsGravatar kosayoda-9/+3
2019-08-19Replace paramater and return value docstring documentation with an extended ↵Gravatar kosayoda-121/+34
summary
2019-08-18added function annotationsGravatar jakeHebert-3/+3
2019-08-18Implement uwuGravatar kosayoda-3/+27
2019-08-18Add utils function to replace multiple words in a given stringGravatar kosayoda-0/+56
2019-08-17Update function annotations for existing methodsGravatar kosayoda-4/+4
2019-08-17Implement randomcaseGravatar kosayoda-0/+31
2019-08-16added validation for Embed author formattingGravatar jakeHebert-1/+2
2019-08-16changed flag again.Gravatar vivax3794-1/+1
2019-08-15cleaned up code, changed json fieldnames, changed command name/aliasGravatar jakeHebert-19/+15
2019-08-15moved populating game_recs to module level, added an index to iterate ↵Gravatar jakeHebert-17/+19
game_recs, edit docstring, added aliases
2019-08-15edited json files, added new resource, small tweaks to EmbedGravatar jakeHebert-29/+16