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:
parent
b28ca170ed
commit
87d0f33352
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue