pull/100/head
Stijn De Clercq 2021-10-04 20:15:01 +02:00
parent 49c5110f8f
commit 0f6a52c75d
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,9 @@ class School(commands.Cog):
# @commands.check(checks.allowedChannels) # @commands.check(checks.allowedChannels)
@help.Category(category=Category.School) @help.Category(category=Category.School)
async def eten(self, ctx, day: str = None): async def eten(self, ctx, day: str = None):
if day is not None:
day = day.lower()
embed = Menu(day).to_embed() embed = Menu(day).to_embed()
await ctx.reply(embed=embed, mention_author=False) await ctx.reply(embed=embed, mention_author=False)
@ -29,6 +32,9 @@ class School(commands.Cog):
# @commands.check(checks.allowedChannels) # @commands.check(checks.allowedChannels)
@help.Category(category=Category.School) @help.Category(category=Category.School)
async def les(self, ctx, day=None): async def les(self, ctx, day=None):
if day is not None:
day = day.lower()
date = les.find_target_date(day) date = les.find_target_date(day)
# Person explicitly requested a weekend-day # Person explicitly requested a weekend-day