Disable les reminder

This commit is contained in:
Stijn De Clercq 2020-12-11 21:47:14 +01:00
parent 110ab575b9
commit 13ce50f4fa
2 changed files with 6 additions and 2 deletions

View file

@ -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