aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcogs/admin.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/cogs/admin.py b/cogs/admin.py
index a9f6dca..04a698e 100755
--- a/cogs/admin.py
+++ b/cogs/admin.py
@@ -209,8 +209,8 @@ class Admin(commands.Cog):
continue
try:
await member.send(
- f"You have been banned from {ctx.guild.name} for {ban_minutes} minutes because: ```{reason}```"
- )
+ f"You have been banned from {ctx.guild.name} for {ban_minutes} minutes because: ```{reason}```"
+ )
except discord.Forbidden:
pass
await ctx.guild.ban(member, reason=reason, delete_message_days=0)
@@ -278,11 +278,12 @@ class Admin(commands.Cog):
@commands.command()
@commands.check(is_mod)
- async def printvar(self, ctx, key = None):
+ async def printvar(self, ctx, key=None):
"""Print config variables, use for testing"""
if key == None:
- for key, value in self.bot.config[str(ctx.message.guild.id)].items():
- ctx.send(f'Key: {key} | Value: {value}')
+ for key, value in self.bot.config[str(
+ ctx.message.guild.id)].items():
+ await ctx.send(f'Key: {key} | Value: {value}')
else:
await ctx.send(self.bot.config[str(ctx.message.guild.id)][key])
@@ -321,8 +322,8 @@ class Admin(commands.Cog):
@commands.command()
@commands.check(is_botmaster)
async def give_role(self, ctx, role_id):
- the_role = ctx.guild.get_role(int(role_id))
- await ctx.author.add_roles(the_role)
+ the_role = ctx.guild.get_role(int(role_id))
+ await ctx.author.add_roles(the_role)
def setup(bot):