diff options
| author | 2019-03-30 10:40:38 -0400 | |
|---|---|---|
| committer | 2019-03-30 10:42:02 -0400 | |
| commit | 095dc1791f147682023edafc59abdc4019074eeb (patch) | |
| tree | 160d7ee160042befbfba778e54507a5eee3bd686 /bot/seasons/halloween/timeleft.py | |
| parent | Merge branch 'master' into hotfix (diff) | |
| parent | Merge pull request #146 from python-discord/flake8-docstring (diff) | |
Merge branch 'master' into hotfix
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") |