From 87d0f33352e778e8dfdd4d429db055411824435a Mon Sep 17 00:00:00 2001 From: Ruby Date: Fri, 10 May 2024 15:19:35 +0200 Subject: [PATCH 1/3] feat: custom help url --- backend/src/plugins/Utility/commands/HelpCmd.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/HelpCmd.ts b/backend/src/plugins/Utility/commands/HelpCmd.ts index 7e3391fdc..06f0ad76f 100644 --- a/backend/src/plugins/Utility/commands/HelpCmd.ts +++ b/backend/src/plugins/Utility/commands/HelpCmd.ts @@ -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", @@ -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`; + snippet += `\n<${env.DASHBOARD_URL}/docs/plugins/${plugin.blueprint.name}/usage#command-${commandSlug}>`; return snippet; }); From 7578ffbab99a8a9d8646fee36e38bfb008a5d0f5 Mon Sep 17 00:00:00 2001 From: Ruby Date: Sun, 2 Jun 2024 17:33:02 +0200 Subject: [PATCH 2/3] chore: formatting --- backend/src/plugins/Utility/commands/HelpCmd.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/HelpCmd.ts b/backend/src/plugins/Utility/commands/HelpCmd.ts index 24571a3c0..4531b1dd0 100644 --- a/backend/src/plugins/Utility/commands/HelpCmd.ts +++ b/backend/src/plugins/Utility/commands/HelpCmd.ts @@ -1,8 +1,9 @@ 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"; -import { env } from "../../../env"; +import { env } from "../../../env.js"; export const HelpCmd = utilityCmd({ trigger: "help", From e4af6ff8c73347c7b5dff86519bf78643ddcff33 Mon Sep 17 00:00:00 2001 From: Ruby Date: Sun, 2 Jun 2024 17:45:34 +0200 Subject: [PATCH 3/3] goddamn --- backend/src/plugins/Utility/commands/HelpCmd.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/plugins/Utility/commands/HelpCmd.ts b/backend/src/plugins/Utility/commands/HelpCmd.ts index 4531b1dd0..4c103e198 100644 --- a/backend/src/plugins/Utility/commands/HelpCmd.ts +++ b/backend/src/plugins/Utility/commands/HelpCmd.ts @@ -3,7 +3,6 @@ import { commandTypeHelpers as ct } from "../../../commandTypes.js"; import { env } from "../../../env.js"; import { createChunkedMessage } from "../../../utils.js"; import { utilityCmd } from "../types.js"; -import { env } from "../../../env.js"; export const HelpCmd = utilityCmd({ trigger: "help",