aboutsummaryrefslogtreecommitdiff
path: root/cogs/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/admin.py')
-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")
dd useless files to .gitignoreAnInternetTroll3-1479987/+2 2021-10-21Merge #59 with the added change of 2 messages before spam is triggeredAnInternetTroll5-715/+1481364 2021-07-05fix run weblinksSkycloudd1-3/+7 2021-07-03Adjust cooldown to per user.Samot191-1/+1 2021-07-03ReformattingLuca Matei Pintilie4-39/+3235 2021-07-03Small fixesSamot191-14/+15 2021-07-02Add support for boomersSamot191-11/+11 2021-06-24Readd stuff that was there.Samot191-2/+23 2021-06-24Add the caller's place on the fair leaderboard Samot191-26/+72 2021-05-24Remove conflicting commandaninternettroll1-48/+0 2021-05-24Add user-agent for xboxuser commandaninternettroll1-1/+3 2021-04-04Minor changesAnInternetTroll1-5/+17 2021-04-04ReformattingAnInternetTroll2-32/+48 2021-04-01Update utils.pySamot191-1/+1 2021-04-01Fair Leaderboard Samot191-8/+53 2021-03-26+ Fix "shut" emojiAhmad Ansori Palembani1-1/+1 2021-03-23Fix typo, add punctuation, and make wording clearer.Samot191-7/+7 2021-03-21Get only the queue, not everythingrandomidiot131-1/+1 2021-03-21Add !queuerandomidiot131-0/+44 2021-03-20remove embed from run rejection messageSkycloudd1-1/+1 2021-03-16hopefully fixed the ultraxd thingSkycloudd1-1/+1 2021-03-05Tabs to spacesMango0x451-526/+541 2021-03-05Educate new members on input rulesMango0x451-535/+526 2021-02-28Make !pending not max out at 200 runs per gamerandomidiot131-5/+16 2021-02-27Update aiohttp due to security vulnerabilityMango0x452-1/+2 2021-02-24Make !verified asynchronousAnInternetTroll2-38/+36 2021-02-20Add verified commandrandomidiot131-0/+45 2021-02-13Whitelist coop all bosses when rejecting spamMango0x451-1/+1 2021-02-13Remove useless importsMango0x454-6/+1 2021-02-13Add better spam preventionMango0x451-15/+22 2021-02-13Remove useless dependenciesMango0x451-10/+8