aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/holidays (follow)
Commit message (Collapse)AuthorAgeLines
* Apply fixes for ruff lintingGravatar Chris Lovering2023-05-09-88/+75
| | | | | Co-authored-by: wookie184 <[email protected]> Co-authored-by: Amrou Bellalouna <[email protected]>
* Update bot/exts/holidays/halloween/spookygif.pyGravatar Amrou Bellalouna2023-05-06-1/+1
| | | Co-authored-by: wookie184 <[email protected]>
* Run null check on needed api keys before loading cogs.Gravatar shtlrs2023-05-06-0/+6
| | | | | | This makes sure that all cogs that need keys won't load. Which helps in avoiding exceptions at runtime, and give a clearer warning at startup time.
* use `SecretStr` for all secretsGravatar shtlrs2023-05-06-5/+5
|
* move lovefest role under the Roles classGravatar shtlrs2023-05-06-6/+6
|
* revert renaming of Client to BotGravatar shtlrs2023-05-06-11/+11
|
* update Tokens & WolframGravatar shtlrs2023-05-06-3/+3
|
* update Client constantsGravatar shtlrs2023-05-06-11/+11
| | | | This also renames the Client class to Bot, to align better with Python.
* Ensure page is always randomGravatar TizzySaurus2023-03-30-1/+1
|
* max -> minGravatar TizzySaurus2023-03-22-1/+1
|
* Fix lintingGravatar TizzySaurus2023-03-14-4/+3
|
* Correctly handle when the movie API doesn't return any moviesGravatar TizzySaurus2023-03-09-3/+17
|
* Move Earth Day to April, where it belongsGravatar Thurisatic2023-02-01-1/+1
|
* Isolate regex options to capture groupsGravatar Thurisatic2023-01-18-6/+6
|
* Perform small fixes, incl requested: sorting, typo, redundancies, moodGravatar Thurisatic2023-01-17-15/+13
| | | | | | | | - Fixes misspelling of hanukkah regex - Move `_check_message` docstring to imperative mood - Remove redundant `_short_circuit_check` from `_check_message` - Remove redundant comma from `EarthDay`'s reaction list - Sort triggers for Halloween and Christmas
* Add non-Christmas holiday reaction capabilitiesGravatar Thurisatic2023-01-16-18/+89
| | | | | | | | | | Triggers for reactions are moved from a dict to to a 2-deep NamedTuple. This is cleaner for multiple reactions, and allows for additional parameters, such as months. Message case checking is altered from `.lower` to `re.IGNORECASE`. Not only does the regex flag short circuit, it doesn't modify the string in question
* De-Halloween-ify reaction Cog: move file, rename internalsGravatar Thurisatic2023-01-15-4/+4
| | | | | Additional pending reactions mean putting the reaction Cog in the halloween directory no longer makes sense. Approriate renamings follow.
* Enhance spooky react to be more spoopy.Gravatar Preocts2022-11-13-1/+1
| | | This change adjusts the regex pattern used in detecting `spooky` to include fun variants such as `spoopy` and `spookier`. The `k` is replaceable with a `p`, the `y` can be interchanged with `i` allowing `ier` and `iest` endings. (`yer` and `yest` are also valid). The number of `o`s remains at two (2) or more.
* Improve time complexity of `already_reacted` function.Gravatar TizzySaurus2022-10-22-6/+8
|
* Add `break` statement to loop to make its functionality clearer.Gravatar TizzySaurus2022-10-19-0/+4
|
* Remove unnecessary map()Gravatar TizzySaurus2022-10-19-4/+1
|
* Remove calls to the deprecated .flatten() methodGravatar TizzySaurus2022-10-19-7/+31
|
* Add bat spooky reaction (#1118)Gravatar Crowthebird2022-10-12-1/+2
|
* Remove all wait_until_guil_available as this is now done in bot-coreGravatar Chris Lovering2022-09-23-5/+0
|
* Move init tasks to async cog_load functionsGravatar Chris Lovering2022-09-21-3/+1
|
* Support discord.py's new async cog loadingGravatar Chris Lovering2022-09-21-66/+66
|
* Fix issue #1050 (#1097)Gravatar Jeremiah2022-09-19-1/+1
| | | Co-authored-by: ChrisJL <[email protected]>
* Allow `.src` in dev-contrib and community-meta (#1033)Gravatar TizzySaurus2022-02-20-13/+13
|
* Remove unused importGravatar Ben Soyka2022-01-31-1/+1
|
* Replace command/channel for lovefest role error in calculatorGravatar Ben Soyka2022-01-31-1/+1
|
* Use constant for Python bot prefixGravatar Ben Soyka2022-01-31-2/+2
|
* Add period to love calculator footerGravatar Ben Soyka2022-01-31-1/+1
|
* Fix footer reference to deprecated unsubscribe commandGravatar Ben Soyka2022-01-31-1/+1
|
* Double quotesGravatar evgriff2021-12-16-2/+2
|
* user.mentionGravatar evgriff2021-12-16-2/+2
|
* Merge branch 'main' of https://github.com/python-discord/sir-lancebotGravatar evgriff2021-12-15-32/+8
|\
| * chore: update lovefest docstring to reflect deprecationGravatar onerandomusername2021-12-03-5/+2
| |
| * chore: remove subcommands entirelyGravatar onerandomusername2021-12-03-13/+1
| |
| * yank lovefest role management commandsGravatar onerandomusername2021-12-03-20/+11
| |
* | Adding suggestions, removing erroneous commitGravatar evgriff2021-12-15-5/+4
| |
* | Merge branch 'main' of https://github.com/python-discord/sir-lancebotGravatar evgriff2021-12-10-48/+36
|\|
| * fix: hanukkah command respects month boundariesGravatar aru2021-12-01-48/+36
| | | | | | | | | | | | | | | | | | | | | | | | rewrote hanukkah to use datetime.strptime left a helper method and some variables in order to allow extending to use a cache in the future, rather than requesting the api every invoke that is out of scope of this commit and pull, since the command is currently broken. I've only kept the same functionality, without trying to rewrite the entire command.
* | Added the user's score to Candy Command according to #947Gravatar evgriff2021-12-10-0/+12
|/
* Candy Game: Ignore reactions to bot messages when adding candiesGravatar Hedy Li2021-10-29-0/+5
| | | | | | | | | | | | | | | | | | Check whether a reaction is for a bot message when adding candies upon reactions. Previously you could use bot's reaction buttons which would trigger `on_reaction_add` and have a high chance of getting candies (or skulls). It can easily be abused to spam reactions, which apparently doesn't trigger an auto-mute like spamming messages do, AFAIK. In any case, I don't really feel good about reactions triggering candies. Despite this fix, the game *can* still be abused (but I won't tell you how). Though this occuring by accident is less likely than before. Either figure it out yourself or don't try to cheat :P This patch can be tested using the `.snake antidote` game when you react to the recipe buttons. Using `.help` works too but it produces a lot of noise in the logs. Tic tac toe may be helpful as well. Anyway, you could just react to bot messages yourself.
* Migrate to `og_blurple` (#924)Gravatar TizzySaurus2021-10-26-1/+1
|
* Isort: give the codebase a sortGravatar Matteo Bertucci2021-10-22-2/+2
|
* Replace usage of bot.command_prefix with constants.Client.prefixGravatar wookie1842021-10-09-3/+3
|
* Candy collection: fix positional arg being passed as kwordGravatar Matteo Bertucci2021-10-08-1/+1
| | | This caused a `TypeError` to be raised, as the `id` argument could only be used as a positional argument and not by keyword.
* Merge branch 'main' into mainGravatar wookie1842021-10-03-4/+4
|\
| * Ignore bot messages for spooky reactGravatar Gustav Odinger2021-10-03-4/+4
| | | | | | | | | | Previously only ignored its own messages, but now ignores messages from all bots.