aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-07-28 12:14:11 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-07-28 12:14:11 +0000
commit15f9cc277e9385b18a3679a446e6964392173c16 (patch)
tree2818a727cfcefd83c2ad90e9acf8f3dd8a4688f2 /cogs
parent945777abb0136b1d8f9be858365efe55287e6f6c (diff)
downloadsteve-bot-15f9cc277e9385b18a3679a446e6964392173c16.tar
steve-bot-15f9cc277e9385b18a3679a446e6964392173c16.tar.gz
steve-bot-15f9cc277e9385b18a3679a446e6964392173c16.tar.bz2
steve-bot-15f9cc277e9385b18a3679a446e6964392173c16.tar.lz
steve-bot-15f9cc277e9385b18a3679a446e6964392173c16.tar.xz
steve-bot-15f9cc277e9385b18a3679a446e6964392173c16.tar.zst
steve-bot-15f9cc277e9385b18a3679a446e6964392173c16.zip
Fixed ban command
Diffstat (limited to 'cogs')
-rwxr-xr-xcogs/admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogs/admin.py b/cogs/admin.py
index 8164790..e1ed9bf 100755
--- a/cogs/admin.py
+++ b/cogs/admin.py
@@ -171,11 +171,11 @@ class Admin(commands.Cog):
embed = discord.Embed(title = "You can't ban me, I'm an almighty bot")
await ctx.send(embed = embed)
continue
- await member.send(f"You have been banned from {ctx.guild.name} for {mute_minutes} minutes because: ```{reason}```")
+ await member.send(f"You have been banned from {ctx.guild.name} for {ban_minutes} minutes because: ```{reason}```")
await ctx.guild.ban(member, reason=reason, delete_message_days=0)
await ctx.send("{0.mention} has been banned by {1.mention} for *{2}*".format(member, ctx.author, reason))
- if mute_minutes > 0:
+ if ban_minutes > 0:
await asyncio.sleep(ban_minutes * 60)
for member in members:
await ctx.guild.unban(member, reason="Time is up")