From 93590d14b7ac03e06b39910ebb32d56f629d8d9d Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sun, 22 Sep 2024 12:22:54 +0100 Subject: [PATCH] Ensure a cadence of 0 does not get used The user surely meant 1 --- matchy/cogs/matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matchy/cogs/matcher.py b/matchy/cogs/matcher.py index 10ed62b..9734a2c 100644 --- a/matchy/cogs/matcher.py +++ b/matchy/cogs/matcher.py @@ -121,7 +121,7 @@ class MatcherCog(commands.Cog): weekday = 0 if hour is None: hour = 9 - if cadence is None: + if cadence is None or cadence == 0: cadence = 1 channel_id = str(interaction.channel.id)