3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 22:55:03 +00:00

feat: custom help url

This commit is contained in:
Ruby 2024-05-10 15:19:35 +02:00 committed by Ruby
parent b28ca170ed
commit 87d0f33352
No known key found for this signature in database
GPG key ID: 74D9DB37B03A4804

View file

@ -2,6 +2,7 @@ import { LoadedGuildPlugin, PluginCommandDefinition } from "knub";
import { commandTypeHelpers as ct } from "../../../commandTypes"; import { commandTypeHelpers as ct } from "../../../commandTypes";
import { createChunkedMessage } from "../../../utils"; import { createChunkedMessage } from "../../../utils";
import { utilityCmd } from "../types"; import { utilityCmd } from "../types";
import { env } from "../../../env"
export const HelpCmd = utilityCmd({ export const HelpCmd = utilityCmd({
trigger: "help", trigger: "help",
@ -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;
}); });