mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Support to show the schedule for a requested day AFTER holidays
This commit is contained in:
parent
ee3ee5284d
commit
54d31c943a
6 changed files with 211 additions and 55 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import random
|
||||
|
||||
from data import constants
|
||||
from data import constants, schedule
|
||||
from decorators import help
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from enums.courses import years
|
||||
from enums.help_categories import Category
|
||||
from functions import checks, eten, les
|
||||
from functions import checks, eten, les, les_rework
|
||||
import json
|
||||
|
||||
|
||||
|
|
@ -44,7 +44,9 @@ class School(commands.Cog):
|
|||
@commands.command(name="Les", aliases=["Class", "Classes", "Sched", "Schedule"], usage="[Jaargang]* [Dag]*")
|
||||
# @commands.check(checks.allowedChannels)
|
||||
@help.Category(category=Category.School)
|
||||
async def les(self, ctx, *day):
|
||||
async def les(self, ctx, day=None):
|
||||
date = les_rework.find_target_date(day)
|
||||
s = schedule.Schedule(date, day is not None)
|
||||
return
|
||||
# parsed = les.parseArgs(day)
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue