diff options
author | ziro <palembani@gmail.com> | 2020-08-06 07:44:44 +0000 |
---|---|---|
committer | ziro <palembani@gmail.com> | 2020-08-06 07:44:44 +0000 |
commit | 84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f (patch) | |
tree | 8b83c802e677123cbd98740f671c626475f6df54 /cogs/utils.py | |
parent | 13447ea06137e9a2d856283037692837836e9b42 (diff) | |
download | steve-bot-84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f.tar steve-bot-84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f.tar.gz steve-bot-84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f.tar.bz2 steve-bot-84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f.tar.lz steve-bot-84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f.tar.xz steve-bot-84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f.tar.zst steve-bot-84dce3a0c1c0687e5c8f6f5beccad3618d9dc86f.zip |
+ Fixed trailing comma
Diffstat (limited to '')
-rwxr-xr-x | cogs/utils.py | 7 |
1 files changed, 2 insertions, 5 deletions
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)) |