From 8b067025565033cbbbf4e1eee1ef7286c5601eaa Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 22 Aug 2021 03:58:18 +0200 Subject: [PATCH] fix reaction --- src/cogs/reminder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cogs/reminder.py b/src/cogs/reminder.py index 79608b5..c7fc26a 100644 --- a/src/cogs/reminder.py +++ b/src/cogs/reminder.py @@ -45,8 +45,8 @@ class ReminderDiscord(commands.Cog, name="Reminder"): sourceMessage = await channel.fetch_message(sourceMessage) # récupération message except: sourceMessage = None # message a été supprimé - if sourceMessage != None: - await addReaction(sourceMessage.message, 0) # ajout réaction + if sourceMessage != True: + await addReaction(sourceMessage.message, 0) # ajout réaction finalEmbed.set_footer(text=f"Message d'il y a {timedeltaToString(int(nowUTC()) - expired[3])}") links = "" findedURLs = getURLsInString(reminder)