diff options
author | 2020-03-23 22:41:06 +0100 | |
---|---|---|
committer | 2020-03-24 20:29:34 +0100 | |
commit | 28e4a23dd50a047dce76818a410d4437c0d0c443 (patch) | |
tree | dbf208985b61f7be47ab3f8f25135a5458cba2b0 /bot/decorators.py | |
parent | Deseasonify: 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.
Diffstat (limited to 'bot/decorators.py')
-rw-r--r-- | bot/decorators.py | 2 |
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`. |