showing id of created reminder + broadcast all expired reminder at once
This commit is contained in:
parent
571eb580cf
commit
66b993b765
1 changed files with 3 additions and 3 deletions
|
@ -491,8 +491,8 @@ class Utils(commands.Cog):
|
|||
messageID = None
|
||||
if fromSlash != True:
|
||||
messageID = ctx.message.id
|
||||
Reminder().ajoutReminder(messageID, ctx.channel.id, extrarg, reminder, now, now + seconds, ctx.author.id, guildID)
|
||||
return await mySendHidden(ctx, fromSlash, f"Ok, je t'en parles {destination} dans {timedeltaToString(seconds)} avec 1m de retard maximum.")
|
||||
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 t'en parles {destination} dans {timedeltaToString(seconds)} avec 1m de retard maximum.")
|
||||
await mySendHidden(ctx, fromSlash, embed = embed)
|
||||
@_reminder.error
|
||||
async def _reminder_error(self, ctx, error):
|
||||
|
@ -556,7 +556,7 @@ class Utils(commands.Cog):
|
|||
await channel.send(message, embed = finalEmbed) # envoie du rappel
|
||||
except: # les DM sont fermés
|
||||
pass
|
||||
return Reminder().suppressionReminder(expired[5]) # suppression du rappel
|
||||
Reminder().suppressionReminder(expired[5]) # suppression du rappel
|
||||
@_reminderLoop.before_loop
|
||||
async def __avant_reminderLoop(self):
|
||||
await self.client.wait_until_ready()
|
||||
|
|
Reference in a new issue