diff --git a/matrix_bot_praying_times/__main__.py b/matrix_bot_praying_times/__main__.py index 52b37a9..6b3e87c 100644 --- a/matrix_bot_praying_times/__main__.py +++ b/matrix_bot_praying_times/__main__.py @@ -120,7 +120,7 @@ async def set_reminder(room, message) -> None: response = "You did not set your location yet." await bot.api.send_markdown_message(room.room_id, response) else: - user.reminder_time_in_minues = minutes + user.reminder_time_in_minutes = minutes user.room_id = room.room_id response = "Your reminder was set to {} minutes before praying.".format(minutes) schedule_reminder(username) @@ -151,7 +151,7 @@ def schedule_reminder(username) -> None: # schedule praying times but skip the ones which already have been passed today seconds = int((praying_time - now).total_seconds()) message = "{} is at {}".format(prayer, praying_time.strftime("%H:%M")) - asyncio.ensure_future(remind(username, message, seconds - user.reminder_time_in_minues * 60)) + asyncio.ensure_future(remind(username, message, seconds - user.reminder_time_in_minutes * 60)) # save date of last schedule for user