aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/spookygif.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-03-30 10:37:59 -0400
committerGravatar GitHub <[email protected]>2019-03-30 10:37:59 -0400
commit5fe5b7c688e19e533fe34d98b8c754bc67a58beb (patch)
tree16c2946f97f85facf6b994b3c48099d369ee7f5a /bot/seasons/halloween/spookygif.py
parentMerge pull request #163 from python-discord/easter_announce (diff)
parentBlank line required between summary line and description. (diff)
Merge pull request #146 from python-discord/flake8-docstring
Implement flake8-docstrings
Diffstat (limited to 'bot/seasons/halloween/spookygif.py')
-rw-r--r--bot/seasons/halloween/spookygif.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/bot/seasons/halloween/spookygif.py b/bot/seasons/halloween/spookygif.py
index c11d5ecb..ce8aef06 100644
--- a/bot/seasons/halloween/spookygif.py
+++ b/bot/seasons/halloween/spookygif.py
@@ -9,19 +9,15 @@ from bot.constants import Tokens
log = logging.getLogger(__name__)
-class SpookyGif(commands.Cog):
- """
- A cog to fetch a random spooky gif from the web!
- """
+class SpookyGif:
+ """A cog to fetch a random spooky gif from the web!"""
def __init__(self, bot):
self.bot = bot
@commands.command(name="spookygif", aliases=("sgif", "scarygif"))
async def spookygif(self, ctx):
- """
- Fetches a random gif from the GIPHY API and responds with it.
- """
+ """Fetches a random gif from the GIPHY API and responds with it."""
async with ctx.typing():
async with aiohttp.ClientSession() as session:
@@ -39,5 +35,7 @@ class SpookyGif(commands.Cog):
def setup(bot):
+ """Spooky GIF Cog load."""
+
bot.add_cog(SpookyGif(bot))
log.info("SpookyGif cog loaded")