mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Disable les reminder
This commit is contained in:
parent
110ab575b9
commit
13ce50f4fa
2 changed files with 6 additions and 2 deletions
|
|
@ -189,6 +189,10 @@ class Tasks(commands.Cog):
|
|||
weekday = self.getCurrentWeekday()
|
||||
|
||||
for category in reminders.categories:
|
||||
# Check if this reminder is temporarily disabled
|
||||
if category["disabled"]:
|
||||
continue
|
||||
|
||||
# Checks if this reminder can be sent on weekdays
|
||||
if (not category["weekends"]) and weekday > 4:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue