mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-28 09:55:48 +02:00
fixes #97
This commit is contained in:
parent
49c5110f8f
commit
0f6a52c75d
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue