Skip to content

Commit

Permalink
add ack and proper clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
mralext20 committed Jul 11, 2023
1 parent 80809d7 commit f00c886
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alexBot/cogs/recurringReminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ async def remind(self, reminder: RecurringReminder):
msg = await self.bot.wait_for(
"message", check=lambda m: m.channel.id == chan_id and m.content.lower() == 'ack', timeout=300
)
v.waiting = False
await msg.reply("reminder cleared")
except asyncio.TimeoutError:
pass
if v.waiting and not msg:
if v.waiting:
v.times += 1
await dis_message.reply("reminder!")

Expand Down

0 comments on commit f00c886

Please sign in to comment.