aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xcogs/utils.py7
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))