diff --git a/src/commands/help.ts b/src/commands/help.ts index cd8835e..348e368 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -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") );