precision on late only if minus than 1 hour
This commit is contained in:
parent
d0619fa950
commit
f46165da55
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class ReminderDiscord(commands.Cog):
|
||||||
if fromSlash != True:
|
if fromSlash != True:
|
||||||
messageID = ctx.message.id
|
messageID = ctx.message.id
|
||||||
reminderID = Reminder().ajoutReminder(messageID, ctx.channel.id, extrarg, reminder, now, now + seconds, ctx.author.id, guildID)
|
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)
|
await mySendHidden(ctx, fromSlash, embed = embed)
|
||||||
@_reminder.error
|
@_reminder.error
|
||||||
async def _reminder_error(self, ctx, error):
|
async def _reminder_error(self, ctx, error):
|
||||||
|
|
Reference in a new issue