Update main.py

This commit is contained in:
taskmanager 2024-03-19 18:54:30 +00:00
parent 480f9c1388
commit bbb92fd817
1 changed files with 4 additions and 1 deletions

View File

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