Fix macros command
This commit is contained in:
parent
29b2412513
commit
c82fc0e78c
1 changed files with 5 additions and 4 deletions
|
@ -53,10 +53,11 @@ class Macro(Cog):
|
||||||
async def list_macros(self, ctx: Context):
|
async def list_macros(self, ctx: Context):
|
||||||
macros = get_macros()
|
macros = get_macros()
|
||||||
if len(macros) > 0:
|
if len(macros) > 0:
|
||||||
await ctx.send(
|
macros = [f"- {key}\n" for key in sorted(macros.keys())]
|
||||||
"📝 **Macros**:\n"
|
message = "📝 **Macros**:\n"
|
||||||
"\n".join([f"- {key}" for key in macros.keys()])
|
for macro_key in macros:
|
||||||
)
|
message += macro_key
|
||||||
|
await ctx.send(message)
|
||||||
else:
|
else:
|
||||||
await ctx.send("Couldn't find any macros.")
|
await ctx.send("Couldn't find any macros.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue