3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

feat: custom help url (#476)

* feat: custom help url

* chore: formatting

* goddamn
This commit is contained in:
rubyowo 2024-06-02 15:48:59 +00:00 committed by GitHub
parent 1a314bf4d9
commit 21e2e58c90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
import { LoadedGuildPlugin, PluginCommandDefinition } from "knub"; import { LoadedGuildPlugin, PluginCommandDefinition } from "knub";
import { commandTypeHelpers as ct } from "../../../commandTypes.js"; import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { env } from "../../../env.js";
import { createChunkedMessage } from "../../../utils.js"; import { createChunkedMessage } from "../../../utils.js";
import { utilityCmd } from "../types.js"; import { utilityCmd } from "../types.js";
@ -62,7 +63,7 @@ export const HelpCmd = utilityCmd({
let snippet = `**${prefix}${trigger}**`; let snippet = `**${prefix}${trigger}**`;
if (description) snippet += `\n${description}`; if (description) snippet += `\n${description}`;
if (usage) snippet += `\nBasic usage: \`${usage}\``; if (usage) snippet += `\nBasic usage: \`${usage}\``;
snippet += `\n<https://zeppelin.gg/docs/plugins/${plugin.blueprint.name}/usage#command-${commandSlug}>`; snippet += `\n<${env.DASHBOARD_URL}/docs/plugins/${plugin.blueprint.name}/usage#command-${commandSlug}>`;
return snippet; return snippet;
}); });