mirror of https://github.com/stijndcl/didier
Disable les + reminders
parent
515a4d1105
commit
dc7e982491
|
@ -45,21 +45,22 @@ 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):
|
async def les(self, ctx, *day):
|
||||||
parsed = les.parseArgs(day)
|
return
|
||||||
|
# parsed = les.parseArgs(day)
|
||||||
# Invalid arguments
|
#
|
||||||
if not parsed[0]:
|
# # Invalid arguments
|
||||||
return await ctx.send(parsed[1])
|
# if not parsed[0]:
|
||||||
|
# return await ctx.send(parsed[1])
|
||||||
day, dayDatetime, semester, year = parsed[1:]
|
#
|
||||||
|
# day, dayDatetime, semester, year = parsed[1:]
|
||||||
# Customize the user's schedule
|
#
|
||||||
schedule = self.customizeSchedule(ctx, year, semester)
|
# # Customize the user's schedule
|
||||||
|
# schedule = self.customizeSchedule(ctx, year, semester)
|
||||||
# Create the embed
|
#
|
||||||
embed = les.createEmbed(day, dayDatetime, semester, year, schedule)
|
# # Create the embed
|
||||||
|
# embed = les.createEmbed(day, dayDatetime, semester, year, schedule)
|
||||||
await ctx.send(embed=embed)
|
#
|
||||||
|
# await ctx.send(embed=embed)
|
||||||
|
|
||||||
# Add all the user's courses
|
# Add all the user's courses
|
||||||
def customizeSchedule(self, ctx, year, semester):
|
def customizeSchedule(self, ctx, year, semester):
|
||||||
|
|
|
@ -12,7 +12,7 @@ class Reminders:
|
||||||
|
|
||||||
self._les = [int(user[0]) for user in rows if user[2]]
|
self._les = [int(user[0]) for user in rows if user[2]]
|
||||||
self._lesMessages = ["Lessenrooster voor vandaag:"]
|
self._lesMessages = ["Lessenrooster voor vandaag:"]
|
||||||
self.les = {"users": self._les, "messages": self._lesMessages, "embed": self.lesEmbed(), "weekends": False, "disabled": False}
|
self.les = {"users": self._les, "messages": self._lesMessages, "embed": self.lesEmbed(), "weekends": False, "disabled": True}
|
||||||
|
|
||||||
self.categories = [self.nightly, self.les]
|
self.categories = [self.nightly, self.les]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue