aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Fixing the recursion bugGravatar Leon Sandøy2018-05-22-1/+1
|
* Configure constants with YAML file(s) (#57)Gravatar Volcyy2018-05-22-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.
* Fix typing issueGravatar Gareth Coles2018-05-20-1/+1
|
* Small formatting fixes; don't send users that don't have the developer roleGravatar Gareth Coles2018-05-20-2/+10
|
* Snake cog bugfixes (#81)Gravatar Leon Sandøy2018-05-20-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
* install missing dependency for pillow [ci skip]Gravatar Christopher Baklid2018-05-19-0/+1
|
* fix pillow install and update pipenv lockGravatar Christopher Baklid2018-05-19-465/+518
|
* Merge branch 'master' of github.com:discord-python/botGravatar Joseph2018-05-19-1/+2
|\
| * re-add snake cog and install zlib in base containerGravatar Christopher Baklid2018-05-19-1/+2
| |
* | Re-instate pillow in PipfileGravatar Joseph2018-05-19-1/+1
|/
* Revert commit changing users urlGravatar Joseph2018-05-19-1/+1
|
* Switch back users urlGravatar Joseph2018-05-19-1/+1
|
* Temporarily disable snakes cog while we fix a zlib issueGravatar Joseph2018-05-19-2/+2
|
* Add missing module to PipfileGravatar Joseph2018-05-19-0/+1
|
* Snake cog (#78)Gravatar Leon Sandøy2018-05-19-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
* Fix some silly type hintsGravatar Gareth Coles2018-05-15-2/+2
|
* [GDPR] Also remove OAuth dataGravatar Gareth Coles2018-05-15-1/+6
|
* [GDPR] Perhaps awaiting the coroutine is a good ideaGravatar Gareth Coles2018-05-15-1/+1
|
* [GDPR] Users are now updated and removed correctlyGravatar Gareth Coles2018-05-15-19/+47
|
* Python parser bug. How on earth haven't we seen this before now?Gravatar Leon Sandøy2018-05-15-1/+1
|
* Minor bug with tags - wrong variable name, no import.Gravatar Leon Sandøy2018-05-15-2/+2
|
* Update README.mdGravatar Leon Sandøy2018-05-14-1/+1
|
* bugfix: commands always have the error property, we need to look for on_errorGravatar Leon Sandøy2018-05-14-1/+1
|
* Bugfix for the aiohttp bug with Network Unreachable - will force the session ↵Gravatar Leon Sandøy2018-05-13-2/+15
| | | | to use AF_INET on local sessions (#76)
* Bump multidict from 4.2.0 to 4.3.1 (#71)Gravatar dependabot[bot]2018-05-11-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]>
* Make python parser handle single bracket calls like self.accept(. (#73)Gravatar Leon Sandøy2018-05-08-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
* Don't load ClickUp cog if `CLICKUP_KEY` is unset. (#70)Gravatar Volcyy2018-05-08-1/+12
|
* Codeblock 1.0 (#35)Gravatar Henrik Böving2018-05-08-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
* Update README.mdGravatar Gareth Coles2018-05-05-0/+2
|
* Remove math cog as Mart has decided to stop maintaining itGravatar Gareth Coles2018-05-05-133/+0
|
* Ignore errors of commands with their own error handler. (#69)Gravatar Volcyy2018-05-05-22/+14
|
* Show alternative syntax in help texts for `bot.tags.keys()` and `bot.tags` (#64)Gravatar Volcyy2018-05-05-1/+15
| | | | | | | | * Show different footer for `keys` and `get`. * Add alternative syntax invocation to help command. * Differentiate between `()` in command invocation or not.
* Upgrade alpine (#65)Gravatar Christopher Baklid2018-05-02-1/+5
| | | | upgrades alpine to 3.7 and adds pipenv commands for docker
* Pin yarl to 1.1.1Gravatar Gareth Coles2018-05-01-8/+9
|
* restructure docker filesGravatar Christopher Baklid2018-04-30-1/+2
|
* Critical fix: python parsing broken with previous merge. This should fix it, ↵Gravatar Leon Sandøy2018-04-29-2/+2
| | | | logical fuckup on my account.
* Python parser cleanup (#62)Gravatar Leon Sandøy2018-04-29-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
* use pip scriptGravatar Christopher Baklid2018-04-29-1/+5
|
* preinstall environment in the base containerGravatar Christopher Baklid2018-04-29-0/+15
|
* readd .git folder to docker container, dependency for commandGravatar Christopher Baklid2018-04-29-1/+0
|
* update dockerignoreGravatar Christopher Baklid2018-04-28-0/+1
|
* update dockerignoreGravatar Christopher Baklid2018-04-28-1/+5
|
* update dockerignoreGravatar Christopher Baklid2018-04-28-0/+8
|
* deletes requirements files in favour of pipenv (#63)Gravatar Christopher Baklid2018-04-28-16/+0
|
* else condition in deploy script to say skipping deployGravatar Christopher Baklid2018-04-28-0/+2
|
* adds dockerfile that uses pipenv (#60)Gravatar Christopher Baklid2018-04-28-20/+54
| | | Dockerfile and new deploy flow that builds the container in travis
* Add help channel 4Gravatar Gareth Coles2018-04-28-1/+3
|
* Use `ast.literal_eval` in get/setitem mimick parsing. (#59)Gravatar Volcyy2018-04-27-13/+11
|
* Fixed a critical bug that makes it impossible for users to change their ↵Gravatar Leon Sandøy2018-04-27-4/+6
| | | | nicknames while bot staging is running. Also fixed a couple of minor aesthetic problems with the hiphopify embed. (#61)
* Declaring the encoding to be utf-8 is not necessary in Python3. (#58)Gravatar Leon Sandøy2018-04-27-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