aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/reminders.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-16 21:37:49 +0200
committerGravatar GitHub <[email protected]>2019-09-16 21:37:49 +0200
commit2b4b0a55f76e1ed63ab6b3f9b6caf76f95c1cccd (patch)
tree07309446427c5f5ed4e88a3b29f5d188c6869dfc /bot/cogs/reminders.py
parentImplement `!otn search`. Closes #408. (diff)
parentUpdate discord.py version to 1.2.3 (#433) (diff)
Merge branch 'master' into otn-search-command
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(