remove python #1

Merged
nin0 merged 8 commits from js into main 2024-09-23 21:15:22 -04:00
Showing only changes of commit 43d9fe5cfc - Show all commits

View file

@ -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")
);