Skip to content

Commit 3ea1b5e

Browse files
lorenzo132sebkuip
authored andcommitted
fix linting
1 parent da6dff2 commit 3ea1b5e

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

cogs/utility.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,10 @@ def add_command_recursive(cmd):
15501550
return await ctx.send(f"Invalid permission level: `{level_name}`. Aborting.")
15511551

15521552
# Confirmation
1553-
command_list_str = ", ".join(f"`{c.qualified_name}`" for c in sorted(final_commands, key=lambda x: x.qualified_name))
1554-
1553+
command_list_str = ", ".join(
1554+
f"`{c.qualified_name}`" for c in sorted(final_commands, key=lambda x: x.qualified_name)
1555+
)
1556+
15551557
# Truncate if too long for embed description
15561558
if len(command_list_str) > 2000:
15571559
command_list_str = command_list_str[:1997] + "..."
@@ -1567,7 +1569,9 @@ def add_command_recursive(cmd):
15671569
try:
15681570
msg = await self.bot.wait_for(
15691571
"message",
1570-
check=lambda m: m.author == ctx.author and m.channel == ctx.channel and m.content.lower() in ("confirm", "cancel"),
1572+
check=lambda m: m.author == ctx.author
1573+
and m.channel == ctx.channel
1574+
and m.content.lower() in ("confirm", "cancel"),
15711575
timeout=30.0,
15721576
)
15731577
except asyncio.TimeoutError:
@@ -1581,9 +1585,9 @@ def add_command_recursive(cmd):
15811585
for cmd in final_commands:
15821586
self.bot.config["override_command_level"][cmd.qualified_name] = level.name
15831587
count += 1
1584-
1588+
15851589
await self.bot.config.update()
1586-
1590+
15871591
await ctx.send(f"Successfully updated permissions for {count} commands.")
15881592

15891593
@permissions.command(name="add", usage="[command/level] [name] [user/role]")

0 commit comments

Comments
 (0)