aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/spookyreact.py
diff options
context:
space:
mode:
authorGravatar Rohan_Iceman <[email protected]>2019-03-27 21:09:23 +0530
committerGravatar GitHub <[email protected]>2019-03-27 21:09:23 +0530
commit463e7f9d757ce8142f23f67f55f3c41d4336ba56 (patch)
treefc3e6484b77907bc0158c271af26261d013ae508 /bot/seasons/halloween/spookyreact.py
parentMerge pull request #99 from python-discord/config-update (diff)
parentMerge pull request #132 from python-discord/dpy-cog-changes (diff)
Merge pull request #1 from python-discord/master
syncing fork
Diffstat (limited to 'bot/seasons/halloween/spookyreact.py')
-rw-r--r--bot/seasons/halloween/spookyreact.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/seasons/halloween/spookyreact.py b/bot/seasons/halloween/spookyreact.py
index f63cd7e5..3b4e3fdf 100644
--- a/bot/seasons/halloween/spookyreact.py
+++ b/bot/seasons/halloween/spookyreact.py
@@ -2,6 +2,7 @@ import logging
import re
import discord
+from discord.ext.commands import Cog
log = logging.getLogger(__name__)
@@ -16,7 +17,7 @@ SPOOKY_TRIGGERS = {
}
-class SpookyReact:
+class SpookyReact(Cog):
"""
A cog that makes the bot react to message triggers.
@@ -25,6 +26,7 @@ class SpookyReact:
def __init__(self, bot):
self.bot = bot
+ @Cog.listener()
async def on_message(self, ctx: discord.Message):
"""
A command to send the seasonalbot github project
@@ -69,4 +71,4 @@ class SpookyReact:
def setup(bot):
bot.add_cog(SpookyReact(bot))
- log.debug("SpookyReact cog loaded")
+ log.info("SpookyReact cog loaded")