multiply time by 60

This commit is contained in:
CAG2Mark 2024-04-29 15:02:54 +08:00
parent 60eae4309a
commit 2365a0c85b

2
bot.py
View File

@ -88,7 +88,7 @@ class Bot:
await inter.response.send_message(embed=error_embed("Unkown error when giving you the sudo role. Please contact an administrator."), ephemeral=True)
return;
del_time = int(datetime.utcnow().timestamp()) + duration
del_time = int(datetime.utcnow().timestamp()) + duration * 60
self.rq.add(del_time, inter.user.id, inter.guild_id, sudo_role_id)
await inter.response.send_message(embed=success_embed("You are now in sudo mode."), ephemeral=True)