aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/deploy.py (unfollow)
Commit message (Collapse)AuthorLines
2018-05-22Configure constants with YAML file(s) (#57)Gravatar Volcyy-738/+959
* Load various constants from `.yml` file. * Ignore user-provided `config.yml`. * Support environment variables in YAML configuration. * Use "class-based" configuration. * Configure logging properly. * Move the last few constants to YAML. * Fix recursive update accidentally overriding mappings. * Read bot token from YAML configuration. * Add documentation strings and `KeyError` handling. * Remove coding setting from constants module. * Add `help4` channel ID to `config-default.yml`. * Fix a few linting issues from merge. * s/Channels.help1/Channels.help0/g * s/Channels.help2/Channels.help1/g * s/Channels.help3/Channels.help2/g * s/Channels.help4/Channels.help3/g * Adress @JoeBanks13's review comments. * Put a block comment above dataclasses.
2018-05-20Fix typing issueGravatar Gareth Coles-1/+1
2018-05-20Small formatting fixes; don't send users that don't have the developer roleGravatar Gareth Coles-2/+10
2018-05-20Snake cog bugfixes (#81)Gravatar Leon Sandøy-13/+14
* This should fix the problem with snakes.video, and is generally a good idea to prevent https-related errors. * This should fix the recursion error in the snakes.snakify feature
2018-05-19install missing dependency for pillow [ci skip]Gravatar Christopher Baklid-0/+1
2018-05-19fix pillow install and update pipenv lockGravatar Christopher Baklid-465/+518
2018-05-19Re-instate pillow in PipfileGravatar Joseph-1/+1
2018-05-19re-add snake cog and install zlib in base containerGravatar Christopher Baklid-1/+2
2018-05-19Revert commit changing users urlGravatar Joseph-1/+1
2018-05-19Switch back users urlGravatar Joseph-1/+1
2018-05-19Temporarily disable snakes cog while we fix a zlib issueGravatar Joseph-2/+2
2018-05-19Add missing module to PipfileGravatar Joseph-0/+1
2018-05-19Snake cog (#78)Gravatar Leon Sandøy-81/+2271
* Added the random_snake_name feature, created by Iceman * Added Antidote to the snake_cog. * Add the snake quiz from Team 7 - Mushy and Cardium - to the snakes cog. (#74) Original PR: https://github.com/discord-python/code-jam-1/pull/2 Completes task: https://app.clickup.com/754996/757069/t/2ww7u * Cleaned up the snake quiz * Cleaning up snake_quiz further and integrating it towards the new API for snake questions. * Bugfixes for Antidote and Quiz * Implemented the zzzen of pythhhon, by prithaj and andrew. * Added the snake facts feature by Andrew and Prithaj. Also cleaned up some code smell. * Implemented the snake_videos feature. Also made a fix for a bug with https sessions on local aiohttp * Implemented Momo and kel's snake perlin noise gen draw feature * Implemented the hatch feature from Momo and Kels PR * Implemented the snakemefeature from the momo and kel PR, with big modifications. It no longer uses markov, it was just too slow to get it to do something interesting. It can also be passed a message to snakify that instead. * Started on Snakes and Ladders, but want to refactor it to use reactions. Fixed up the perlin noise gen to generate random snake attributes. * Movie command, initial version * Snakes and Ladders implemented and rewritten to use reactions for controls. * made the snek draw feature even more fabulous. * SAL, get_snek, perlin * Fixing some minor problems with startup log spam. The bot will now only try to post to DEVLOG if it's not in debug mode. Also added the new snake API endpoints and prepping for database handling of all snek related datapoints. * Pointed all relevant functions at their respective snake API endpoints. Tested. All the data is now in our database, and everything appears to work. * Added the guessing game by Ava and eivl * Trailing comma, baby * Added snake cards. * Added the snakes.about command, and cleaned up the cog. Still got a couple of bugs with snake_card, but other than that this is done. * Some fixes for the snake cards. Cards now use the converter on the snake input, so it can disambiguate just like .get. Also made the special cases like bob ross available to both .get and .card * Some fixes to address Volcyy's review. * Addressing comments by gdude on the site PR * Changes requested by Joseph
2018-05-15Fix some silly type hintsGravatar Gareth Coles-2/+2
2018-05-15[GDPR] Also remove OAuth dataGravatar Gareth Coles-1/+6
2018-05-15[GDPR] Perhaps awaiting the coroutine is a good ideaGravatar Gareth Coles-1/+1
2018-05-15[GDPR] Users are now updated and removed correctlyGravatar Gareth Coles-19/+47
2018-05-15Python parser bug. How on earth haven't we seen this before now?Gravatar Leon Sandøy-1/+1
2018-05-15Minor bug with tags - wrong variable name, no import.Gravatar Leon Sandøy-2/+2
2018-05-14Update README.mdGravatar Leon Sandøy-1/+1
2018-05-14bugfix: commands always have the error property, we need to look for on_errorGravatar Leon Sandøy-1/+1
2018-05-13Bugfix for the aiohttp bug with Network Unreachable - will force the session ↵Gravatar Leon Sandøy-2/+15
to use AF_INET on local sessions (#76)
2018-05-11Bump multidict from 4.2.0 to 4.3.1 (#71)Gravatar dependabot[bot]-31/+20
Bumps [multidict](https://github.com/aio-libs/multidict) from 4.2.0 to 4.3.1. - [Release notes](https://github.com/aio-libs/multidict/releases) - [Changelog](https://github.com/aio-libs/multidict/blob/master/docs/changes.rst) - [Commits](https://github.com/aio-libs/multidict/compare/v4.2.0...v4.3.1) Signed-off-by: dependabot[bot] <[email protected]>
2018-05-08Make python parser handle single bracket calls like self.accept(. (#73)Gravatar Leon Sandøy-30/+62
* Python parser now handles single bracket calls like . This solves a problem where these messages would get stuck in #checkpoint and never get removed. Also added #bot-commands to codeblock parsing whitelist so there is no cooldown in that channel anymore. * Refactored whitelist into a cog attribute, and made it a tuple. * these debug logs should be trace logs * Refactored a bit to make whitelist vs cooldown a bit more intuitive. whitelist channels shouldn't have to be in the cooldown dict. * Fixed stupid idiot f-string moron factory fuckup
2018-05-08Don't load ClickUp cog if `CLICKUP_KEY` is unset. (#70)Gravatar Volcyy-1/+12
2018-05-08Codeblock 1.0 (#35)Gravatar Henrik Böving-53/+210
* adding detection for bad ticks * no more codeblock tag * several minor changes and a seperate function for repl stripping * fixing linter issues * improving repl stripper * line limit * better comments * logging * New sings, reformatting strings and removing one fstring lemon missed * improved logging * now exchanging bad ticks and sending backtick + codeblocking hint * removing the need for a codeblock to be a python one * Reworked the which hint to send when logic * damn flake8 * this should fix the issues addressed by lemon * lemons other issues * forgot to save.... * rstrip * now fixing overidented code * merging caused code format issues * ... * adding support for bad indentation fixing * dont requrie py or python to be at the code block, move mention out of the embed * typo * improved bad ticks hint * refactoring the embed yet AGAIN and ignoring code with backticks in it * neeew embeds * perfect formatting * leaving repl code in the embed * flake8......(and auto spaces) * ...... * adding support for not complete python at beginning of the codeblock * issue with bad tick detection fixed * more logging, always sending hint once repl detected * too much logging * fixes to 'when to send the repl hint' * forgot to remove a debug print * better comments * even better comments * more and better comments, fixed one bug with returning in codeblock_stripping * flake8......(and auto spaces) again * addressed all the issues by lemon * oversaw one * DESTROY JUAN * blank line for readability * flake8 * .... * apertures issues
2018-05-05Update README.mdGravatar Gareth Coles-0/+2
2018-05-05Remove math cog as Mart has decided to stop maintaining itGravatar Gareth Coles-133/+0
2018-05-05Ignore errors of commands with their own error handler. (#69)Gravatar Volcyy-22/+14
2018-05-05Show alternative syntax in help texts for `bot.tags.keys()` and `bot.tags` (#64)Gravatar Volcyy-1/+15
* Show different footer for `keys` and `get`. * Add alternative syntax invocation to help command. * Differentiate between `()` in command invocation or not.
2018-05-02Upgrade alpine (#65)Gravatar Christopher Baklid-1/+5
upgrades alpine to 3.7 and adds pipenv commands for docker
2018-05-01Pin yarl to 1.1.1Gravatar Gareth Coles-8/+9
2018-04-30restructure docker filesGravatar Christopher Baklid-1/+2
2018-04-29Critical fix: python parsing broken with previous merge. This should fix it, ↵Gravatar Leon Sandøy-2/+2
logical fuckup on my account.
2018-04-29Python parser cleanup (#62)Gravatar Leon Sandøy-124/+152
* Cleaned up the python parser by abstracting a little, and added a few channels as exceptions to the tags cooldown system * Refactored to make the code more DRY * Addressing Volcyy's requests for change
2018-04-29use pip scriptGravatar Christopher Baklid-1/+5
2018-04-29preinstall environment in the base containerGravatar Christopher Baklid-0/+15
2018-04-29readd .git folder to docker container, dependency for commandGravatar Christopher Baklid-1/+0
2018-04-28update dockerignoreGravatar Christopher Baklid-0/+1
2018-04-28update dockerignoreGravatar Christopher Baklid-1/+5
2018-04-28update dockerignoreGravatar Christopher Baklid-0/+8
2018-04-28deletes requirements files in favour of pipenv (#63)Gravatar Christopher Baklid-16/+0
2018-04-28else condition in deploy script to say skipping deployGravatar Christopher Baklid-0/+2
2018-04-28adds dockerfile that uses pipenv (#60)Gravatar Christopher Baklid-20/+54
Dockerfile and new deploy flow that builds the container in travis
2018-04-28Add help channel 4Gravatar Gareth Coles-1/+3
2018-04-27Use `ast.literal_eval` in get/setitem mimick parsing. (#59)Gravatar Volcyy-13/+11
2018-04-27Fixed a critical bug that makes it impossible for users to change their ↵Gravatar Leon Sandøy-4/+6
nicknames while bot staging is running. Also fixed a couple of minor aesthetic problems with the hiphopify embed. (#61)
2018-04-27Declaring the encoding to be utf-8 is not necessary in Python3. (#58)Gravatar Leon Sandøy-24/+1
* Declaring the encoding to be utf-8 is not necessary in Python3 projects, as this is the default encoding. Encoding declarations are only useful in py3 if you want to declare it to be something _other_ than utf-8. This was, however, a very useful convention in py2. * No blank lines at the top of file. Also snuck in a single letter typo correction in hiphopify because I'm a terrible person. inb4 THIS IS NOT IN SCOPE FOR THIS PR
2018-04-21Use converters for tag command argument validation. (#56)Gravatar Volcyy-78/+88
* Use converters for tag command argument validation. * Remove now unused imports. * Show red embed with an error message. This also adds a `CogBadArgument` class, which is intended to be used with command error handlers in cogs in order to handle their own `BadArgument` exceptions without having `on_command_error` do so. * Placate the flake8
2018-04-20[#1eeu1] Hiphopify (#54)Gravatar Leon Sandøy-23/+270
* Boilerplate for the new hiphopify cog, and a new feature for the python parser - we can now parse role mentions, channel mentions, and user mentions without wrapping them in quotes. * Got the bot.unhiphopify feature working. Still needs polish. Also added required constants. * Moved some constants out of tags and hiphopify and into the constants file. Fixed a bug with the python parsing monkeypatch where regular non-python style parsing would no longer allow mentions. Wrote the on_member_change event handler and the bot.hiphopify feature. Almost ready for testing. * cleaning up constants * Now logging the hiphopify events into #mod-log * Adding a little extra logging * Added an explicit catch and warning log if the user has disabled DMs or blocked the bot, as this would cause discord to raise an error. Also addressed the feedback from Joseph and Apertures reviews.