From 0f6a52c75dfee79278d09d5a6343125a085127ed Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Mon, 4 Oct 2021 20:15:01 +0200 Subject: [PATCH] fixes #97 --- cogs/school.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cogs/school.py b/cogs/school.py index 01f8f09..a8c00cd 100644 --- a/cogs/school.py +++ b/cogs/school.py @@ -22,6 +22,9 @@ class School(commands.Cog): # @commands.check(checks.allowedChannels) @help.Category(category=Category.School) async def eten(self, ctx, day: str = None): + if day is not None: + day = day.lower() + embed = Menu(day).to_embed() await ctx.reply(embed=embed, mention_author=False) @@ -29,6 +32,9 @@ class School(commands.Cog): # @commands.check(checks.allowedChannels) @help.Category(category=Category.School) async def les(self, ctx, day=None): + if day is not None: + day = day.lower() + date = les.find_target_date(day) # Person explicitly requested a weekend-day