diff options
| author | 2019-09-17 05:12:06 +1000 | |
|---|---|---|
| committer | 2019-09-17 05:12:06 +1000 | |
| commit | 9b2145505b68b001b6db8bb0206442f27b80ce54 (patch) | |
| tree | 358703e95093e7f83aca33b529c54abbfd6a22a3 /bot/cogs/reminders.py | |
| parent | Merge pull request #430 from python-discord/bot-cogs-security-tests (diff) | |
| parent | Adjust to new cog method names. (diff) | |
Update discord.py version to 1.2.3 (#433)
Update discord.py version to 1.2.3
Co-authored-by: null <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/reminders.py | 5 |
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( |