aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/holidays/holidayreact.py (follow)
Commit message (Collapse)AuthorAgeLines
* 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-0/+71
Additional pending reactions mean putting the reaction Cog in the halloween directory no longer makes sense. Approriate renamings follow.