aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/spookysound.py
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2019-05-11 04:51:30 +1000
committerGravatar GitHub <[email protected]>2019-05-11 04:51:30 +1000
commit0e2c6a1b0daef5b569da7652801b5725bf1ed95b (patch)
treec3d57e50f2ba07cb2d9e7476d3b9441c1f671bd9 /bot/seasons/halloween/spookysound.py
parentnot importing aiohttp now (diff)
parentMerge pull request #198 from Suhail6inkling/constants_fix (diff)
Merge branch 'master' into hanukkah_embed_iceman
Diffstat (limited to 'bot/seasons/halloween/spookysound.py')
-rw-r--r--bot/seasons/halloween/spookysound.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bot/seasons/halloween/spookysound.py b/bot/seasons/halloween/spookysound.py
index 1e430dab..7c4d8113 100644
--- a/bot/seasons/halloween/spookysound.py
+++ b/bot/seasons/halloween/spookysound.py
@@ -11,9 +11,7 @@ log = logging.getLogger(__name__)
class SpookySound(commands.Cog):
- """
- A cog that plays a spooky sound in a voice channel on command.
- """
+ """A cog that plays a spooky sound in a voice channel on command."""
def __init__(self, bot):
self.bot = bot
@@ -24,9 +22,11 @@ class SpookySound(commands.Cog):
@commands.command(brief="Play a spooky sound, restricted to once per 2 mins")
async def spookysound(self, ctx):
"""
- Connect to the Hacktoberbot voice channel, play a random spooky sound, then disconnect. Cannot be used more than
- once in 2 minutes.
+ Connect to the Hacktoberbot voice channel, play a random spooky sound, then disconnect.
+
+ Cannot be used more than once in 2 minutes.
"""
+
if not self.channel:
await self.bot.wait_until_ready()
self.channel = self.bot.get_channel(Hacktoberfest.voice_id)
@@ -39,12 +39,12 @@ class SpookySound(commands.Cog):
@staticmethod
async def disconnect(voice):
- """
- Helper method to disconnect a given voice client.
- """
+ """Helper method to disconnect a given voice client."""
await voice.disconnect()
def setup(bot):
+ """Spooky sound Cog load."""
+
bot.add_cog(SpookySound(bot))
log.info("SpookySound cog loaded")