diff options
-rwxr-xr-x | cogs/general.py | 4 | ||||
-rwxr-xr-x | cogs/utils.py | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/cogs/general.py b/cogs/general.py index cf05eb4..aa61d9c 100755 --- a/cogs/general.py +++ b/cogs/general.py @@ -400,9 +400,7 @@ class General(commands.Cog): prefixes.pop(1)
prefixes.pop(1)
prefixes.pop(1)
- output = ""
- for i in prefixes:
- output += i+", "
+ output = ", ".join(prefixes)
await ctx.send(f"My prefixes are {output}")
diff --git a/cogs/utils.py b/cogs/utils.py index 1309141..7cf401b 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -267,11 +267,8 @@ class Utils(commands.Cog): """List all custom commands""" with open('custom_commands.json', 'r') as f: commands = json.load(f) - output = '```List of custom commands:\n' - for key in commands: - output += f'{key}, ' - output += '```' - await ctx.send(output) + output = ", ".join([*commands]) + await ctx.send(f"```List of custom commands:\n{output}```") def setup(bot): bot.add_cog(Utils(bot)) |