Update main.py
This commit is contained in:
parent
480f9c1388
commit
bbb92fd817
5
main.py
5
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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue