From 9e91e57d9472f4a5e7d2d56ea106a854283797b4 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Thu, 22 Feb 2024 20:26:27 -0600 Subject: [PATCH] Mods --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 5b67243..7e8ad03 100644 --- a/main.py +++ b/main.py @@ -245,7 +245,10 @@ async def gif_numbers(arg, room_id): if nums[0] is not None: if nums[1] is not None: - num = random_int(nums[0], nums[1]) + if nums[0] < nums[1]: + num = random_int(nums[0], nums[1]) + else: + return else: num = random_int(0, nums[0])