Skip to content

Commit

Permalink
feat: custom help url
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyowo committed May 10, 2024
1 parent b28ca17 commit f61bb3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/plugins/Utility/commands/HelpCmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { LoadedGuildPlugin, PluginCommandDefinition } from "knub";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { createChunkedMessage } from "../../../utils";
import { utilityCmd } from "../types";
import { env } from "../../../env"

export const HelpCmd = utilityCmd({
trigger: "help",
Expand Down Expand Up @@ -62,7 +63,7 @@ export const HelpCmd = utilityCmd({
let snippet = `**${prefix}${trigger}**`;
if (description) snippet += `\n${description}`;
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;
});
Expand Down

0 comments on commit f61bb3c

Please sign in to comment.