From 15f9cc277e9385b18a3679a446e6964392173c16 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Tue, 28 Jul 2020 13:14:11 +0100 Subject: Fixed ban command --- cogs/admin.py | 4 ++-- custom_commands.json | 2 +- 2 files changed, 3 insertions(+), 3 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") diff --git a/custom_commands.json b/custom_commands.json index 9606473..b337920 100755 --- a/custom_commands.json +++ b/custom_commands.json @@ -30,7 +30,7 @@ "!GlasgowRangers": "You Let Your Club Die!", "!e\ud83c\udd71\ufe0fic": "HEY GUYS ITS SHIGAME45", "!testy": "test", - "!toxicitypass": "```TOXICITY PASS\n\nTHE HOLDER OF THIS PASS HAS PERMISSION FROM THE HEAVENS ABOVE TO DO AND SAY WHATEVER THE HELL THEY WANT\nTHEY ARE ALLOWED TO BE AS TOXIC AS THEY WILL WITHOUT REPERCUSSIONS\n\nPASS OWNER: Duck W aka Weexy aka Indy Kambeitz```", + "!toxicitypass": "```TOXICITY PASS\n\nTHE HOLDER OF THIS PASS HAS PERMISSION FROM THE HEAVENS ABOVE TO DO AND SAY WHATEVER THE HELL THEY WANT\nTHEY ARE ALLOWED TO BE AS TOXIC AS THEY WILL WITHOUT REPERCUSSIONS\n\nPASS OWNER: Duck W aka Weexy aka Indy Kambeitz\nPASS OWNER: Shadowfi```", "!welcome": "Welcome! <:mango:715738087627685908>", "!learntoread": "When two players are tied on the leaderboards **ONLY ONE FUCKER WILL BE VISIBLE**", "!mobiledupe": "1) place item to dupe in the crafting grid\n2) keep pressed until the green bar thing appears\nclick any \"Impossible\" craft (red ones)\n3)press the item to dupe (that is in your hotbar now -> it should have moved there since you pressed the impossible craft)\n4)your item should be duped", -- cgit v1.2.3