diff options
author | 2019-03-19 14:17:59 -0400 | |
---|---|---|
committer | 2019-03-19 14:17:59 -0400 | |
commit | 74d6012bc80b93842c6081d115e87d6a8a77b95b (patch) | |
tree | 598ac286dc06932b17a57250c39102cf03a444c9 /bot/seasons/evergreen/fun.py | |
parent | Docstring pass for Christmas cogs (diff) |
Docstring pass for Evergreen cogs
Diffstat (limited to 'bot/seasons/evergreen/fun.py')
-rw-r--r-- | bot/seasons/evergreen/fun.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/bot/seasons/evergreen/fun.py b/bot/seasons/evergreen/fun.py index 4da01dd1..f5814a80 100644 --- a/bot/seasons/evergreen/fun.py +++ b/bot/seasons/evergreen/fun.py @@ -9,18 +9,15 @@ log = logging.getLogger(__name__) class Fun: - """ - A collection of general commands for fun. - """ + """A collection of general commands for fun.""" def __init__(self, bot): self.bot = bot @commands.command() async def roll(self, ctx, num_rolls: int = 1): - """ - Outputs a number of random dice emotes (up to 6) - """ + """Outputs a number of random dice emotes (up to 6).""" + output = "" if num_rolls > 6: num_rolls = 6 @@ -32,7 +29,8 @@ class Fun: await ctx.send(output) -# Required in order to load the cog, use the class name in the add_cog function. def setup(bot): + """Fun Cog load.""" + bot.add_cog(Fun(bot)) log.debug("Fun cog loaded") |