fix: typo of author instead of user
All checks were successful
Build Docker / Build Docker (push) Successful in 17s

This commit is contained in:
Nathan Woodburn 2023-11-14 13:19:25 +11:00
parent 7085f1ac1a
commit e0fd085aab
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

2
bot.py
View File

@ -463,7 +463,7 @@ async def remindme(ctx, when: str, reminder: str):
if time_delta is not None:
# Schedule the reminder
reminder_time = datetime.datetime.now() + time_delta
store_reminder(ctx.author.id, reminder_time, reminder)
store_reminder(ctx.user.id, reminder_time, reminder)
await ctx.response.send_message("I've set a reminder for you in " + when + ".\n" + reminder,ephemeral=True)
else:
await ctx.response.send_message("Invalid time format. Please use something like `1d 3h` or `4hr`.",ephemeral=True)