1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Forgot a return

This commit is contained in:
Steffo 2019-04-09 11:25:07 +02:00
parent bbb89b3370
commit 8d232fdc6b

View file

@ -22,6 +22,7 @@ class ReminderCommand(Command):
date = None date = None
if date is None: if date is None:
await call.reply("⚠️ La data che hai inserito non è valida.") await call.reply("⚠️ La data che hai inserito non è valida.")
return
await call.reply(f"✅ Promemoria impostato per [b]{date.strftime('%Y-%m-%d %H:%M:%S')}[/b]") await call.reply(f"✅ Promemoria impostato per [b]{date.strftime('%Y-%m-%d %H:%M:%S')}[/b]")
await sleep_until(date) await sleep_until(date)
await call.reply(f"❗️ Promemoria: [b]{reminder_text}[/b]") await call.reply(f"❗️ Promemoria: [b]{reminder_text}[/b]")