Update schedule, re-enable les reminders, allow school commands globally

pull/36/head
Stijn De Clercq 2021-02-08 18:25:25 +01:00
parent d13a5f77d8
commit 01b1c5d2b3
3 changed files with 11 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class School(commands.Cog):
return not self.client.locked
@commands.command(name="Eten", aliases=["Food", "Menu"], usage="[Dag]*")
@commands.check(checks.allowedChannels)
# @commands.check(checks.allowedChannels)
@help.Category(category=Category.School)
async def eten(self, ctx, *day):
day = les.getWeekDay(None if len(day) == 0 else day)[1]
@ -40,7 +40,7 @@ class School(commands.Cog):
await ctx.send(embed=embed)
@commands.command(name="Les", aliases=["Class", "Classes", "Sched", "Schedule"], usage="[Jaargang]* [Dag]*")
@commands.check(checks.allowedChannels)
# @commands.check(checks.allowedChannels)
@help.Category(category=Category.School)
async def les(self, ctx, *day):
parsed = les.parseArgs(day)

View File

@ -12,7 +12,7 @@ class Reminders:
self._les = [int(user[0]) for user in rows if user[2]]
self._lesMessages = ["Lessenrooster voor vandaag:"]
self.les = {"users": self._les, "messages": self._lesMessages, "embed": self.lesEmbed(), "weekends": False, "disabled": True}
self.les = {"users": self._les, "messages": self._lesMessages, "embed": self.lesEmbed(), "weekends": False, "disabled": False}
self.categories = [self.nightly, self.les]

View File

@ -75,6 +75,14 @@
"room": "A3",
"time": ["woensdag", 900, 1100]
},
{
"weeks": [1],
"canceled": true,
"campus": "Sterre",
"building": "S9",
"room": "A3",
"time": ["woensdag", 900, 1100]
},
{
"online": "ZOOM",
"time": ["donderdag", 1000, 1300]