From bbb92fd8179506c666a1d3427f0bc91df909bb41 Mon Sep 17 00:00:00 2001 From: taskmanager <51055281+Mantaraix@users.noreply.github.com> Date: Tue, 19 Mar 2024 18:54:30 +0000 Subject: [PATCH] Update main.py --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 99669de..e4addc6 100644 --- a/main.py +++ b/main.py @@ -819,11 +819,14 @@ async def register(interaction: discord.Interaction): if app: status, _, _, _, reviewed = app + date = dateutil.parser.isoparse(reviewed) + datetime.timedelta(days=3) + timestamp = int(date.timestamp()) + if status == "Banned": return await interaction.response.send_message( "You cannot submit an application at this moment. Please run */info* for more details." ) - if status == "Denied": + if status == "Denied" and timestamp < int((datetime.datetime.now()).timestamp()): date = dateutil.parser.isoparse(reviewed) + datetime.timedelta(days=3) timestamp = int(date.timestamp()) return await interaction.response.send_message(