aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py (follow)
Commit message (Collapse)AuthorAgeLines
...
| | * | | | fstrings, colours, and self.botGravatar Kronifer2021-03-03-0/+1
| | | | | |
| | * | | | finished functionGravatar Kronifer2021-03-02-0/+1
| | | | | |
| | * | | | Merge branch 'master' into feature/improve-wikiGravatar Senjan212021-03-01-0/+2
| | |\ \ \ \
| | | * | | | Add issue cog to staff channels.Gravatar Chris2021-02-28-0/+2
| | | | | | |
| | * | | | | Merge branch 'master' into feature/improve-wikiGravatar Shivansh-0072021-02-28-1/+4
| | |\| | | |
| | | * | | | Fix pipfile conflicts, and add/use emojis from constants.pyGravatar Shivansh-0072021-02-23-1/+4
| | | | | | |
| | * | | | | Goodbye Wikipedia Class, no need of you anymoreGravatar Shivansh-0072021-02-22-4/+0
| | |/ / / /
| * / / / / Switch to itertools.cycle and add colors to constants.pyGravatar MrKomodoDragon2021-02-22-0/+2
| |/ / / /
* | | | | Update emojisGravatar Vivaan Parashar2021-04-13-4/+4
| | | | |
* | | | | use emojis and limit tags to 3Gravatar Vivaan Parashar2021-04-13-0/+5
|/ / / /
* | | | Merge branch 'feature/cheat.sh' of ↵Gravatar Shivansh-0072021-02-02-0/+7
|\ \ \ \ | | | | | | | | | | | | | | | https://github.com/Shivansh-007/sir-lancebot into feature/cheat.sh
| * \ \ \ Merge branch 'master' into feature/cheat.shGravatar Shivansh-0072021-02-02-0/+7
| |\ \ \ \
| | * | | | Add mod_meta and mod_tools channels to whitelistedGravatar Shivansh-0072021-01-31-0/+2
| | | | | |
| | * | | | Add check for in category and in remove overide_channel check and do it ↵Gravatar Shivansh-0072021-01-27-0/+8
| | | |_|/ | | |/| | | | | | | | | | | | without decorator
* | / | | everyone -> everyone_role and remove developers roleGravatar Shivansh-0072021-02-02-2/+1
|/ / / /
* / / / Allow cht.sh command to be used in occupied help channelsGravatar Shivansh-0072021-02-02-6/+5
|/ / /
* | | Merge branch 'master' into tic-tac-toeGravatar ks1292021-01-24-1/+2
|\ \ \ | | |/ | |/|
| * | Merge branch 'master' into IGDB-V4Gravatar ks1292021-01-17-36/+4
| |\ \
| * | | Revert change to trashcan emojiGravatar Chris2021-01-08-1/+1
| | | |
| * | | Get and renew V4 OAuth tokenGravatar Chris2021-01-08-2/+3
| | | |
* | | | Merge branch 'master' into tic-tac-toeGravatar ks1292021-01-16-36/+4
|\ \ \ \ | | |/ / | |/| |
| * | | Updates ConstantsGravatar Hassan Abouelela2021-01-15-2/+4
| | | | | | | | | | | | | | | | | | | | Updates the constants file with the new channel ID, and renames both channels to match the new names.
| * | | Remove sprint channels from the configuration.Gravatar Matteo Bertucci2021-01-15-34/+0
| |/ / | | | | | | Now that the core dev sprint has ended, we can safely remove those. It caused the wrong channel message to be huge because of all the deleted channels.
* | | Merge remote-tracking branch 'origin/master' into tic-tac-toeGravatar xithrius2021-01-08-0/+1
|\| |
| * | Merge branch 'master' into omdb-to-tmdbGravatar William Da Silva2020-12-28-7/+62
| |\ \
| * \ \ Merge branch 'master' into omdb-to-tmdbGravatar Matteo Bertucci2020-11-30-18/+62
| |\ \ \ | | | |/ | | |/|
| * | | Replace OMDB with TMDBGravatar Will Da Silva2020-10-05-1/+0
| | | | | | | | | | | | | | | | Closes: #136
* | | | Merge branch 'master' into tic-tac-toeGravatar ks1292020-12-28-8/+61
|\ \ \ \ | | |_|/ | |/| |
| * | | Add Git SHA as constantGravatar ks1292020-12-19-0/+2
| | | |
| * | | Merge branch 'master' into sebastiaan/advent-of-code/refactor-background-tasksGravatar Sebastiaan Zeeff2020-12-13-2/+21
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # bot/exts/christmas/advent_of_code/_cog.py # bot/exts/christmas/advent_of_code/_helpers.py
| | * | | Change Default AoC Commands ChannelGravatar janine9vn2020-12-11-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the default value of the advent_of_code_commands constant to be the same channel ID as sir-lancebot-commands. If no AoC commands channel is set in the .env file, it'll re-direct people to sir-lancebot-commands instead.
| | * | | Disallow .aoc commands in primary aoc channelGravatar janine9vn2020-12-11-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands like `.aoc leaderboard` and `.aoc stats` proved to be spammy in the main advent of code channel. An aoc_commands channel has been added for aoc commands and this update prohibits aoc commands from being used in the primary aoc channel and adds the comands channel to the whitelist. This also specifically allows the less spammier commands: join, subscribe, unsubscribe, and countdown in the primary channel to foster discussion though.
| | * | | Support a fallback session cookie in constantsGravatar Sebastiaan Zeeff2020-12-05-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To mitigate problems due to expiring session cookies, I'm currently in the process of adding support for a fallback cookie. Basically, my Advent of Code account is a member of *all* leaderboards, which means that my cookie can be used to fetch all leaderboards as well. As my session cookie should not expire until after the event, it should not give us any issues. However, to avoid issues with issuing too many requests from one session, we should still make sure to set individual session values regardless of the mitigation.
| * | | | 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.