Merge pull request #156 from CodeName393/Change-minimum-time-for-slow

feat(click): Change the minimum time for slow
This commit is contained in:
sp4rk.y
2026-09-06 08:44:28 -06:00
committed by GitHub
+2 -2
View File
@@ -454,8 +454,8 @@ class SlowDelayRange(click.ParamType):
self.fail(f"'{value}' is not a valid range. Use format: MIN-MAX (e.g., 20-40)", param, ctx)
low, high = int(match.group(1)), int(match.group(2))
if low < 20:
self.fail(f"Minimum delay must be at least 20 seconds, got {low}", param, ctx)
if low < 5:
self.fail(f"Minimum delay must be at least 5 seconds, got {low}", param, ctx)
if low > high:
self.fail(f"Min ({low}) cannot be greater than max ({high})", param, ctx)