diff --git a/cogs/school.py b/cogs/school.py index b22482d..8f52d6e 100644 --- a/cogs/school.py +++ b/cogs/school.py @@ -54,6 +54,10 @@ class School(commands.Cog): date = skip_weekends(date) s = schedule.Schedule(date, int(config.get("year")), int(config.get("semester")), day is not None) + + if s.semester_over: + return await ctx.send("Het semester is afgelopen.") + return await ctx.send(embed=s.create_schedule().to_embed()) @commands.command(name="Pin", usage="[Message]") diff --git a/files/schedules/31.json b/files/schedules/31.json index f40f33d..8edbf90 100644 --- a/files/schedules/31.json +++ b/files/schedules/31.json @@ -1,6 +1,6 @@ { "semester_start": [1, 7, 2021], - "semester_end": [16, 8, 2021], + "semester_end": [1, 8, 2021], "holidays": [ { "start_date": [2, 7, 2021, 23, 59, 59],