remove python #1
1 changed files with 2 additions and 2 deletions
|
@ -10,13 +10,13 @@ async function handler(ctx: Context, args: string[]) {
|
|||
`*${cmd.name}${cmd.aliases.length ? ` (${cmd.aliases.join(", ")})` : ""}*\n${cmd.description}\n${cmd.modOnly ? "_🛡️ Mod only_" : ""}${cmd.ownerOnly ? "_👑 Owner only_" : ""}`
|
||||
);
|
||||
} else {
|
||||
const cmds = commands.filter((c) => !c.ownerOnly);
|
||||
const cmds = commands;
|
||||
cmds.sort((a, b) => a.name.localeCompare(b.name)); // Sort commands alphabetically by name
|
||||
return await ctx.replyWithMarkdown(
|
||||
cmds
|
||||
.map(
|
||||
(c) =>
|
||||
`*${c.name}*${c.aliases.length ? `_ (${c.aliases.join(", ")})_` : ""} - ${c.description}`
|
||||
`*${c.name}*${c.aliases.length ? `_ (${c.aliases.join(", ")})_` : ""}${c.ownerOnly ? " 👑" : ""}${c.ownerOnly ? " 🛡️" : ""} - ${c.description}`
|
||||
)
|
||||
.join("\n")
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue