From 6c83a41d826ec43b4947e38a0c4c17f9e5dcbef0 Mon Sep 17 00:00:00 2001 From: janderedev Date: Wed, 16 Mar 2022 21:50:35 +0100 Subject: [PATCH] link to server settings in /help --- bot/src/bot/commands/help.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/src/bot/commands/help.ts b/bot/src/bot/commands/help.ts index 68defc1..757970f 100644 --- a/bot/src/bot/commands/help.ts +++ b/bot/src/bot/commands/help.ts @@ -1,5 +1,4 @@ import Command from "../../struct/Command"; -import { Message } from "@janderedev/revolt.js/dist/maps/Messages"; import { commands, DEFAULT_PREFIX, ownerIDs } from "../modules/command_handler"; import CommandCategory from "../../struct/CommandCategory"; import MessageCommandContext from "../../struct/MessageCommandContext"; @@ -45,7 +44,9 @@ export default { let searchInput = args.shift()?.toLowerCase(); if (!searchInput) { let msg = `## AutoMod help\n` + - `Type **${prefix}help [category]** to view see all commands or **${prefix}help [command]** to learn more about a command.\n\n`; + `Type **${prefix}help [category]** to view see all commands or **${prefix}help [command]** to learn more about a command.\n\n` + + `### [Open Server Settings]` + + `(<${process.env.WEB_UI_URL || 'https://automod.janderedev.xyz'}/dashboard/${message.channel?.server_id}>)\n\n`; let total = 0;