Skip to content

Commit

Permalink
feat: custom help url (#476)
Browse files Browse the repository at this point in the history
* feat: custom help url

* chore: formatting

* goddamn
  • Loading branch information
rubyowo authored Jun 2, 2024
1 parent 1a314bf commit 21e2e58
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
@@ -1,5 +1,6 @@
import { LoadedGuildPlugin, PluginCommandDefinition } from "knub";
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
import { env } from "../../../env.js";
import { createChunkedMessage } from "../../../utils.js";
import { utilityCmd } from "../types.js";

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 21e2e58

Please sign in to comment.