aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py (follow)
Commit message (Collapse)AuthorAgeLines
...
| * | | | Update docstrings and fix grammar in commentsGravatar Sebastiaan Zeeff2020-12-02-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've updated some docstrings to include more information about the inner workings of some of the functions. In addition, I've also slightly reformulated some block comments to improve their grammar. Kaizen change: There was a redundant list comprehension in the Advent of Code section of the constants. I've removed it.
| * | | Add support for ignoring scores from specific daysGravatar Sebastiaan Zeeff2020-12-01-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've added support for ignoring scores from specific days. A list of days to ignore can be provided using the environment variable `AOC_IGNORED_DAYS` as a comma-separated list. This example would ignore day 1 and day 23: AOC_IGNORED_DAYS=1,23 I've also added a helper function to sort the leaderboard not only on the achieved score, but also on the number of stars an individual has completed.
| * | | Remove constants replaced by AOC_LEADERBOARDSGravatar Sebastiaan Zeeff2020-11-30-3/+0
| | | | | | | | | | | | | | | | | | | | There were still two constants left over that were no longer used after the rewrite. I've removed them.
| * | | Fix docstrings and add a few explanatory commentsGravatar Sebastiaan Zeeff2020-11-30-2/+2
| | | |
| * | | Set correct channel ID as default for AoC channelGravatar Sebastiaan Zeeff2020-11-30-1/+1
| | | |
| * | | Remove now redundant advent_of_code_staff constantGravatar Sebastiaan Zeeff2020-11-30-1/+0
| | | | | | | | | | | | | | | | | | | | 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.
| * | | Add constants parsing for multiple leaderboardsGravatar Sebastiaan Zeeff2020-11-30-9/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've added a unified approach to setting data for multiple leaderboards using environmental variables. Instead of setting separate variables for the three pieces of data we have, hoping that the position of each board matches up in the three fields, I now set one environmental variable, AOC_LEADERBOARDS, that holds delimited data. The data is in the format: board_id1,session1,join_code1::board_id2,session2,join_code2[::...] The staff leaderboards should be included as usual in this environmental variable. Another environment variable, AOC_STAFF_LEADERBOARD_ID, can be used to designate which leaderboard should be used as the staff board. I've also made some other constants configurable in this commit and added the role ID of the Events Lead role to allow the Events Lead to force a reload of the leaderboard cache.
| * | | Fix adventofcode extension (and constants) grammarGravatar ks1292020-11-27-2/+2
| | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
| * | | Add comments about AoC env config order and change cookies wayGravatar ks1292020-11-24-1/+4
| | | |
| * | | Update constants to match with new format of AoC that will run in 2020Gravatar ks1292020-11-24-3/+6
| | |/ | |/|
* | | Merge branch 'master' into tic-tac-toeGravatar Matteo Bertucci2020-11-30-18/+62
|\| |
| * | Remove references to old name.Gravatar Leon Sandøy2020-11-21-17/+16
| | | | | | | | | | | | | | | 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.
| * | Make the bot name less hard-coded.Gravatar Leon Sandøy2020-11-21-1/+2
| | |
| * | Rename redis configuration classGravatar ks1292020-11-16-1/+2
| | |
| * | Create Redis configuration classGravatar ks1292020-11-16-0/+7
| | |
| * | Constants: prefix sprint channel namesGravatar kwzrd2020-10-15-28/+28
| | | | | | | | | | | | These are channels created for the CPython Core Dev Sprint event.
| * | Constants: rename conflicting channelGravatar kwzrd2020-10-15-2/+2
| | | | | | | | | | | | There were two attributes named 'announcements' on the Channels class.
| * | Corrected Trailing WhitespaceGravatar Daniel Brown2020-10-15-2/+2
| | | | | | | | | | | | Removed a trailing white space that caused a build failure.
| * | Added Core Dev Sprint to whitelistGravatar Daniel Brown2020-10-15-0/+34
| | | | | | | | | For the sake of entertainment of the Core Devs, I have added the SeasonalBot functionality to the Core Dev Sprint channels.
| * | Adding #voice_chat to the Seasonal Bot white listGravatar Daniel Brown2020-10-12-0/+2
| |/ | | | | Since SeasonalBot is able to be used in the off-topic channels, it makes to have it work in the voice_chat channel as well.
* | Merge branch 'master' into tic-tac-toeGravatar ks1292020-10-10-5/+11
|\|
| * Merge branch 'master' into source_cmdGravatar Matteo Bertucci2020-10-04-5/+7
| |\
| | * Update the Hacktoberfest channel constantGravatar Sebastiaan Zeeff2020-09-30-1/+1
| | | | | | | | | | | | | | | I've updated the Hacktoberfest channel ID to the ID of the new channel just created for the 2020 edition of the event.
| | * Remove SpookySound Cog that played sounds in voiceGravatar Sebastiaan Zeeff2020-09-30-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | We had an old Cog that would allow our members to run a command to make Seasonal Bot join a voice channel to play a spooky sound. However, as our voice channel use has changed over the past year, we don't think that it's still a good idea to do this. That's why I removed the Cog and the constants related to it.
| | * Merge branch 'master' into ext-managmentGravatar Matteo Bertucci2020-09-24-0/+3
| | |\
| | * | Remove non-existing class reference in constantsGravatar Gustav Odinger2020-09-22-1/+0
| | | | | | | | | | | | | | | | - Since URLs no longer exists, it's now removed from __all__
| | * | Fix GitHub repo link constant Gravatar gustavwilliam2020-09-22-1/+1
| | | | | | | | | | | | | | | | | | | | - Previous version was pointing to Python, not SeasonalBot Co-authored-by: Dennis Pham <[email protected]>
| | * | Move bot repo URL constant and delete avatar URLGravatar Gustav Odinger2020-09-21-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Avatar URL can be accessed through bot.user.avatar_url and won't need to be a constant - Bot repo URL fits better under the Client named tuple - URLs class removed, since it was no longer used
| | * | Fix core developers role idGravatar Gustav Odinger2020-09-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Previous versions used the id from a local test server - This version uses the PyDis core developer role
| | * | Add status emojis in constants.pyGravatar Gustav Odinger2020-09-21-0/+5
| | | | | | | | | | | | | | | | - Required for extensions.py to work properly
| | * | Update constants.py to include URLsGravatar Gustav Odinger2020-09-21-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | - Includes bot_avatar and github_bot_repo URLs - Necessary for extensions.py cog to work
| * | | changed github_avatar_urlGravatar Anubhav16032020-10-03-1/+1
| | | |
| * | | added github_avatar_urlGravatar Anubhav16032020-10-02-0/+1
| | | |
| * | | added github url of seasonal botGravatar Anubhav16032020-09-29-0/+3
| | |/ | |/|
* | | Merge branch 'master' into tic-tac-toeGravatar ks1292020-09-24-7/+20
|\| |
| * | Merge branch 'master' into masterGravatar Matteo Bertucci2020-09-22-7/+16
| |\|
| | * Allow `issue` command in #dev-brandingGravatar Den42002020-09-19-0/+1
| | |
| | * Update .roll to use new dice emojisGravatar Gustav Odinger2020-09-16-6/+6
| | | | | | | | | | | | - Resolves #440
| | * Removed None from environ.get() in Wolfram NamedTuple to keep consistency ↵Gravatar Xithrius2020-08-29-1/+1
| | | | | | | | | | | | throughout constants.py
| | * Reverted the SeasonalBot commands channel.Gravatar Xithrius2020-08-29-1/+1
| | |
| | * Removed the time utility and replaced it with the arrow package.Gravatar Xithrius2020-08-29-5/+5
| | | | | | | | | | | | Alphabetized the "Colours" NamedTuple in the constants file.
| | * Updated constants to include Wolfram configuration.Gravatar Xithrius2020-08-29-0/+8
| | |
| * | added wikipedia class which has total_chanceGravatar Anubhav16032020-09-08-0/+3
| |/
| * Add #dev-contrib to channel constantsGravatar Numerlor2020-04-19-0/+1
| |
* | (Constants, TicTacToe): Fixed number emojis contants, created helper ↵Gravatar ks1292020-04-07-9/+9
| | | | | | | | function `send_board` to `Game` class.
* | (Constants, TicTacToe): Added X and O emojis.Gravatar ks1292020-04-07-0/+2
| |
* | (Constants, TicTacToe): Added confirmation and declining emojis.Gravatar ks1292020-04-07-0/+2
| |
* | (Constants, TicTacToe): Added number emojis that will be shown in board and ↵Gravatar ks1292020-04-07-0/+13
|/ | | | in reactions.
* Merge master: adjust `Space` cog locationGravatar kwzrd2020-04-01-0/+1
|\ | | | | | | Module was placed in the `seasons` pkg, which we renamed to `exts`.
| * Merge branch 'master' into space-cogGravatar Shirayuki Nekomata2020-03-31-0/+1
| |\