From f46165da55db8c1c86dac49f10258aa4df55c898 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 29 Jul 2021 20:35:39 +0200 Subject: [PATCH] precision on late only if minus than 1 hour --- src/cogs/reminder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/reminder.py b/src/cogs/reminder.py index 51dfc60..823e75c 100644 --- a/src/cogs/reminder.py +++ b/src/cogs/reminder.py @@ -59,7 +59,7 @@ class ReminderDiscord(commands.Cog): if fromSlash != True: messageID = ctx.message.id reminderID = Reminder().ajoutReminder(messageID, ctx.channel.id, extrarg, reminder, now, now + seconds, ctx.author.id, guildID) - return await mySendHidden(ctx, fromSlash, f"Ton reminder **`{reminderID[0][0]}`** est enrengistré, je te notifie {destination} dans {timedeltaToString(seconds)} (avec 1m de retard maximum).") + return await mySendHidden(ctx, fromSlash, f"Ton reminder **`#{reminderID[0][0]}`** est enrengistré, je te notifie {destination} dans {timedeltaToString(seconds)}{'' if seconds >= 3600 else ' (avec 1m de retard maximum)'}.") await mySendHidden(ctx, fromSlash, embed = embed) @_reminder.error async def _reminder_error(self, ctx, error):