aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/reminders.py
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-09-22 15:15:27 -0400
committerGravatar sco1 <[email protected]>2019-09-22 15:15:27 -0400
commit9e30880df12d085b545ed3d429b2dcea3ea7d544 (patch)
treeb3409f6be37e20ad8c4f67bcb0fe609647d6f93f /bot/cogs/reminders.py
parentMake defcon days command turn on defcon, refactor log messaging (diff)
parentFix date formatting bug in infraction search (diff)
Merge branch 'master' into defcon-fix-django
Diffstat (limited to '')
-rw-r--r--bot/cogs/reminders.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index 03ea00de8..c6ae984ea 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -7,7 +7,7 @@ from operator import itemgetter
from dateutil.relativedelta import relativedelta
from discord import Colour, Embed
-from discord.ext.commands import Bot, Context, group
+from discord.ext.commands import Bot, Cog, Context, group
from bot.constants import Channels, Icons, NEGATIVE_REPLIES, POSITIVE_REPLIES, STAFF_ROLES
from bot.converters import ExpirationDate
@@ -22,12 +22,13 @@ WHITELISTED_CHANNELS = (Channels.bot,)
MAXIMUM_REMINDERS = 5
-class Reminders(Scheduler):
+class Reminders(Scheduler, Cog):
def __init__(self, bot: Bot):
self.bot = bot
super().__init__()
+ @Cog.listener()
async def on_ready(self):
# Get all the current reminders for re-scheduling
response = await self.bot.api_client.get(