mirror of https://github.com/stijndcl/didier
fixes #97
parent
49c5110f8f
commit
0f6a52c75d
|
@ -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…
Reference in New Issue