aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/fun.py
diff options
context:
space:
mode:
authorGravatar Rohan <[email protected]>2019-04-05 21:57:01 +0530
committerGravatar Rohan <[email protected]>2019-04-05 21:57:01 +0530
commite590dcd137a9c86b3b7b6d48b5d72d0fc395a768 (patch)
tree69a8111e913687e278803e336bf316cc1d7d562b /bot/seasons/evergreen/fun.py
parentMerge pull request #1 from python-discord/master (diff)
parentMerge pull request #184 from RohanRadia/master (diff)
Merge branch 'master' of https://github.com/python-discord/seasonalbot
Diffstat (limited to 'bot/seasons/evergreen/fun.py')
-rw-r--r--bot/seasons/evergreen/fun.py12
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")