From 8ccefa2468262cc125a369560d2a34b0c757899c Mon Sep 17 00:00:00 2001 From: sco1 Date: Fri, 29 Mar 2019 08:11:21 -0400 Subject: Update docstrings for new linting --- bot/seasons/halloween/timeleft.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'bot') 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") -- cgit v1.2.3