aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-03-23 22:41:06 +0100
committerGravatar kwzrd <[email protected]>2020-03-24 20:29:34 +0100
commit28e4a23dd50a047dce76818a410d4437c0d0c443 (patch)
treedbf208985b61f7be47ab3f8f25135a5458cba2b0
parentDeseasonify: mock expensive API calls in debug mode (diff)
Deseasonify: rename `in_month` decorator
Indicate that the decorator shall only be applied to commands. The `in_month` name will be used for a universal decorator that can season-lock both listeners and commands.
-rw-r--r--bot/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/decorators.py b/bot/decorators.py
index efd43da0..19eae55b 100644
--- a/bot/decorators.py
+++ b/bot/decorators.py
@@ -83,7 +83,7 @@ def in_month_listener(*allowed_months: Month) -> typing.Callable:
return decorator
-def in_month(*allowed_months: Month) -> typing.Callable:
+def in_month_command(*allowed_months: Month) -> typing.Callable:
"""
Check whether the command was invoked in one of `enabled_months`.