mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
Fix timetable forgetting days other than mon-fri exist
This commit is contained in:
parent
58256a317f
commit
88ebd55461
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class TimeTableCog(commands.Cog):
|
|||
else:
|
||||
date = datetime.now()
|
||||
|
||||
lessons = self.timetable[date.strftime("%A").lower()]
|
||||
lessons = self.timetable.get(date.strftime("%A").lower(), [])
|
||||
if not lessons:
|
||||
return await ctx.respond(f"No lessons on {discord.utils.format_dt(date, 'D')}.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue