From 01b1c5d2b3afe7b695acde4897485a4cf4f73e51 Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Mon, 8 Feb 2021 18:25:25 +0100 Subject: [PATCH] Update schedule, re-enable les reminders, allow school commands globally --- cogs/school.py | 4 ++-- data/remind.py | 2 +- files/schedules/22.json | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cogs/school.py b/cogs/school.py index 52fd18d..8c6445c 100644 --- a/cogs/school.py +++ b/cogs/school.py @@ -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) diff --git a/data/remind.py b/data/remind.py index bfe4768..8c92bc2 100644 --- a/data/remind.py +++ b/data/remind.py @@ -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] diff --git a/files/schedules/22.json b/files/schedules/22.json index 5ef090a..1a105b3 100644 --- a/files/schedules/22.json +++ b/files/schedules/22.json @@ -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]