From 2660b3284ac2c65ba9f1c709ac95c5ed408b458e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 28 Jul 2021 22:31:47 +0200 Subject: [PATCH] fix bug due to transition --- src/cogs/reminder.py | 7 ++++--- src/cogs/utils.py | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cogs/reminder.py b/src/cogs/reminder.py index 721452c..1cb2bc0 100644 --- a/src/cogs/reminder.py +++ b/src/cogs/reminder.py @@ -6,12 +6,13 @@ from utils.core import getURLsInString, getMentionInString, isSlash, mySendHidde from utils.time import stringTempsVersSecondes, nowUTC, intToDatetime, timedeltaToString, timestampScreen def setup(client): - client.add_cog(Reminder(client)) + client.add_cog(ReminderDiscord(client)) -class Reminder(commands.Cog): - """Commandes relatives aux cours.""" +class ReminderDiscord(commands.Cog): + """Commandes relatives aux reminder.""" def __init__(self, client): self.client = client + self._reminderLoop.start() @commands.command(name='reminder', aliases=["remind", "remindme", "rappel"]) async def _reminder(self, ctx, time, *reminder): diff --git a/src/cogs/utils.py b/src/cogs/utils.py index 65a54fe..6d79604 100644 --- a/src/cogs/utils.py +++ b/src/cogs/utils.py @@ -15,7 +15,6 @@ class Utils(commands.Cog): def __init__(self, client): self.client = client self.customTimezone = load(["TIMEZONE"])["TIMEZONE"] - self._reminderLoop.start() @commands.command(name='ping') async def _ping(self, ctx, *arg):