Increase lock limits to 7 days from 12 hours

This commit is contained in:
Zeva Rose 2022-09-09 22:26:58 -06:00
parent 6f2fdc55d7
commit 63594fc50f
2 changed files with 4 additions and 4 deletions

View file

@ -57,8 +57,8 @@ class LockCog(Extension):
await ctx.send("Duration must be > 0", ephemeral=True)
return
elif duration > 60 * 12:
await ctx.send("Duration must be <= 12 hours", ephemeral=True)
elif duration > 60 * 24 * 7:
await ctx.send("Duration must be <= 7 days", ephemeral=True)
return
if len(reason) > 100:

View file

@ -130,8 +130,8 @@ class LockdownCog(Extension):
if duration <= 0:
await ctx.send("Duration must be > 0", ephemeral=True)
return
elif duration >= 300:
await ctx.send("Duration must be < 5 hours", ephemeral=True)
elif duration > 60 * 24 * 7:
await ctx.send("Duration must be <= 7 days", ephemeral=True)
return
exists = await Lockdown.find_one(q(guild=ctx.guild.id, active=True))