diff options
author | 2019-03-29 08:11:21 -0400 | |
---|---|---|
committer | 2019-03-29 08:11:21 -0400 | |
commit | 8ccefa2468262cc125a369560d2a34b0c757899c (patch) | |
tree | a0e35f50fc78569b4c8626f89f046e7107370827 | |
parent | Merge branch 'master' into flake8-docstring (diff) |
Update docstrings for new linting
-rw-r--r-- | bot/seasons/halloween/timeleft.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/bot/seasons/halloween/timeleft.py b/bot/seasons/halloween/timeleft.py index af205573..56a3eaed 100644 --- a/bot/seasons/halloween/timeleft.py +++ b/bot/seasons/halloween/timeleft.py @@ -7,26 +7,20 @@ log = logging.getLogger(__name__) class TimeLeft: - """ - A Cog that tells you how long left until Hacktober is over! - """ + """A Cog that tells you how long left until Hacktober is over!""" def __init__(self, bot): self.bot = bot @staticmethod def in_october(): - """ - Return True if the current month is October. - """ + """Return True if the current month is October.""" return datetime.utcnow().month == 10 @staticmethod def load_date(): - """ - Return of a tuple of the current time and the end and start times of the following October. - """ + """Return of a tuple of the current time and the end and start times of the next October.""" now = datetime.utcnow() year = now.year @@ -63,5 +57,7 @@ class TimeLeft: def setup(bot): + """Cog load.""" + bot.add_cog(TimeLeft(bot)) log.info("TimeLeft cog loaded") |