aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts (follow)
Commit message (Collapse)AuthorAgeLines
* Fix docstrings and add a few explanatory commentsGravatar Sebastiaan Zeeff2020-11-30-3/+6
|
* Remove now redundant advent_of_code_staff constantGravatar Sebastiaan Zeeff2020-11-30-1/+1
| | | | | We're no longer going to use a two-channel setup for this event, as we don't want to split the event community into two, staff and non-staff.
* Remove redundant _error_embed_helper functionGravatar Sebastiaan Zeeff2020-11-30-7/+3
| | | | | | This helper function was only being used in one spot and did not factor out any logic. I've removed the helper function to just create the embed where it's needed.
* Rewrite Advent of Code leaderboard logicGravatar Sebastiaan Zeeff2020-11-30-0/+680
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've rewritten the Advent of Code leaderboard logic. Unfortunately, nearly all of the changes made are interrelated, meaning that they've ended up in the same commit. To add a bit of structure to the extension, I've chosen for a subpackage structure instead of a single file structure. The biggest changes: - Whether or not you get a join code for the staff leaderboard will now be determined by looking for the Helpers-role. - The Python Discord Leaderboard now includes all boards, including the staff leaderboard. This is one event. - Redis is now used to set a cache expiry period. This means that our code does not have to check for cache staleness; Redis will do that for us. - The period "fetching" task has been removed. We now fetch solely when the data is needed to prevent putting unnecessary stress on the Advent of Code website. - The option to display the Global Leaderboard within Discord has been removed. Rather, we now link to the website. This simplified the code for now, although we could add it back later. - An additional command, `.aoc refresh`, has been added to allow Admins and the Events Lead to force the cache to be invalidated. This should be done sparingly to not overburden the AoC website. - I've also made sure that the daily notification task actually pings the notification role by setting the `allowed_mentions` kwarg.
* Remove adventofcode.py in favour of subpackageGravatar Sebastiaan Zeeff2020-11-30-983/+0
| | | | | | As the Advent of Code file was getting massive, I've removed the old single-file based extension as I'm going to replace it with a partially rewritten subpackage-based extension.
* Fix adventofcode extension (and constants) grammarGravatar ks1292020-11-27-10/+10
| | | Co-authored-by: Joe Banks <[email protected]>
* Use default 0 for score and reverse leaderboard membersGravatar ks1292020-11-27-1/+3
|
* Handle leaderboard cache create/update failGravatar ks1292020-11-27-12/+52
|
* Remove unnecessary check for members in leaderboard updater taskGravatar ks1292020-11-27-3/+1
|
* Add comment about choosing leaderboard for userGravatar ks1292020-11-27-0/+1
|
* Store AoC leaderboard IDs instead join codes for users mappingGravatar ks1292020-11-26-5/+10
|
* Implement staff and public leaderboardsGravatar ks1292020-11-26-58/+197
|
* Implement different invitation codes for staff and public leaderboardsGravatar ks1292020-11-25-11/+66
|
* Add staff AoC channel to whitelistGravatar ks1292020-11-24-1/+1
|
* Merge branch 'master' into feature/wonder-twins-commandGravatar ks1292020-11-23-714/+68
|\
| * Remove dead ShowProjects cog.Gravatar Leon Sandøy2020-11-21-36/+1
| | | | | | | | We no longer have this channel, so this cog serves no purpose.
| * Remove references to old name.Gravatar Leon Sandøy2020-11-21-33/+29
| | | | | | | | | | I've tried to replace this with generic references where appropriate, but a lot of the time it just doesn't make a lot of sense to do so.
| * Get rid from branding management stuffGravatar ks1292020-11-17-533/+1
| |
| * Port HacktoberStats cog to use Redis instead of JSONGravatar ks1292020-11-16-67/+12
| |
| * Port candy_collection.py to use Redis instead of JSONGravatar ks1292020-11-16-34/+26
| |
| * Migrate branding from JSON persist to RedisGravatar ks1292020-11-16-25/+13
| |
* | fix typos in docstringGravatar fisher602020-11-22-1/+1
| |
* | make init variables more readable, fix docstring, remove redundant listGravatar fisher602020-11-22-6/+6
| |
* | move constants to init, change [-1] to .endswith()Gravatar fisher602020-11-21-9/+9
| |
* | feature/add wonder twins commandGravatar fisher602020-11-19-0/+49
| | | | | | | | This commit implements a wonder twins inspired command. This is a purely fun command that uses real transformations from the show to make random new transformations. The yaml is all hand transcribed from the actual show.
* | Fix lint errors introduced by persistence removalGravatar Sebastiaan Zeeff2020-11-16-8/+8
|/ | | | | | | | | | | We ripped some features out of the bot to make the migration to kubernetes easier. However, that process left us with some linting errors that will play up if anyone makes a PR. I've added "noqa" to the valid TODO lines and commented out lines that introduced now unused names or tried to use now undefined names. This should have no influence on the bot, as it does not touch code that is actually being run at the moment.
* Remove make_persistent import from bot extensionsGravatar Jeremiah Boby2020-11-14-4/+8
|
* Remove references to deprecated methods in cog initGravatar Jeremiah Boby2020-11-14-5/+6
|
* Raise NotImplementedError on write/read to configGravatar Jeremiah Boby2020-11-14-4/+51
|
* Remove unused arrow importGravatar Jeremiah Boby2020-11-14-1/+0
|
* Remove CandyCollection cogs from loaded cogsGravatar Jeremiah Boby2020-11-14-1/+0
|
* Remove HacktoberStats cog from loaded cogsGravatar Jeremiah Boby2020-11-14-1/+0
|
* Revert autoformatter changesGravatar Jeremiah Boby2020-11-14-2/+8
|
* Don't load Monster survey cogGravatar Jeremiah Boby2020-11-14-1/+0
|
* Remove persistent methods from evergreen branding managerGravatar Jeremiah Boby2020-11-14-58/+2
|
* Merge branch 'master' into candyGravatar Quanta2020-10-26-135/+384
|\
| * Merge pull request #479 from Anubhav1603/bug_ecGravatar Senjan212020-10-24-44/+50
| |\ | | | | | | [Bug] emoji command
| | * removed _ from command nameGravatar Anubhav16032020-10-14-1/+1
| | |
| | * improved readbility of code by breaking one liner into if elseGravatar Anubhav16032020-10-13-8/+8
| | |
| | * Update bot/exts/evergreen/emoji_count.pyGravatar Anubhav2020-10-11-1/+4
| | | | | | | | | Co-authored-by: Rohan Reddy Alleti <[email protected]>
| | * Update bot/exts/evergreen/emoji_count.pyGravatar Anubhav2020-10-11-1/+4
| | | | | | | | | Co-authored-by: Rohan Reddy Alleti <[email protected]>
| | * removed len,\n and now passing ctx.guild.emojisGravatar Anubhav16032020-10-09-9/+9
| | |
| | * added s in emoji_countGravatar Anubhav16032020-10-07-2/+2
| | |
| | * added typing.tupleGravatar Anubhav16032020-10-07-3/+4
| | |
| | * Merge branch 'master' into bug_ecGravatar Thomas Petersson2020-10-07-7/+36
| | |\
| | * | added category name and added check for no emojiGravatar Anubhav16032020-10-07-8/+12
| | | |
| | * | Corrected msgGravatar Anubhav2020-10-07-1/+1
| | | | | | | | | | | | Co-authored-by: Rohan Reddy Alleti <[email protected]>
| | * | Corrected doc stringGravatar Anubhav2020-10-07-1/+1
| | | | | | | | | | | | Co-authored-by: Rohan Reddy Alleti <[email protected]>
| | * | removed keys()Gravatar Anubhav16032020-10-05-1/+1
| | | |
| | * | added 1 logging and modified for loop in emoji_countGravatar Anubhav16032020-10-05-7/+9
| | | |