diff options
author | 2019-03-30 10:37:59 -0400 | |
---|---|---|
committer | 2019-03-30 10:37:59 -0400 | |
commit | 5fe5b7c688e19e533fe34d98b8c754bc67a58beb (patch) | |
tree | 16c2946f97f85facf6b994b3c48099d369ee7f5a /bot/seasons/halloween/timeleft.py | |
parent | Merge pull request #163 from python-discord/easter_announce (diff) | |
parent | Blank line required between summary line and description. (diff) |
Merge pull request #146 from python-discord/flake8-docstring
Implement flake8-docstrings
Diffstat (limited to 'bot/seasons/halloween/timeleft.py')
-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") |