From 28e4a23dd50a047dce76818a410d4437c0d0c443 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Mon, 23 Mar 2020 22:41:06 +0100 Subject: 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. --- bot/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/decorators.py') 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`. -- cgit v1.2.3