diff options
| author | 2019-05-11 04:51:30 +1000 | |
|---|---|---|
| committer | 2019-05-11 04:51:30 +1000 | |
| commit | 0e2c6a1b0daef5b569da7652801b5725bf1ed95b (patch) | |
| tree | c3d57e50f2ba07cb2d9e7476d3b9441c1f671bd9 /bot/seasons/evergreen/fun.py | |
| parent | not importing aiohttp now (diff) | |
| parent | Merge pull request #198 from Suhail6inkling/constants_fix (diff) | |
Merge branch 'master' into hanukkah_embed_iceman
Diffstat (limited to '')
| -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 9ef47331..05cf504e 100644 --- a/bot/seasons/evergreen/fun.py +++ b/bot/seasons/evergreen/fun.py @@ -9,18 +9,15 @@ log = logging.getLogger(__name__)  class Fun(commands.Cog): -    """ -    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(commands.Cog):          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.info("Fun cog loaded")  |