Dough Git

commit

Make the help command use it's own file

commit
7f0d44a59a3ef9865168787d859ac410b8eecd67
author
Clove Twilight <[email protected]>
date
2026-11-16 20:34

diff --git a/src/commands/index.ts b/src/commands/index.ts
index fa29fe9..993cbd2 100644
--- a/src/commands/index.ts
+++ b/src/commands/index.ts
@@ -5,6 +5,7 @@ import type { Message } from "discord.js";
 import { autoproxyCommand } from "./autoproxy.ts";
 import { editCommand } from "./edit.ts";
 import { explainCommand } from "./explain.ts";
+import { helpCommand } from "./help.ts";
 import { parseCommand } from "./parse.ts";
 
 type CommandHandler = (
@@ -13,12 +14,6 @@ type CommandHandler = (
     rest: string,
 ) => Promise<void>;
 
-const helpText = [
-    "`d!edit <text>` edits the message you reply to, or your latest proxied message. `d!e` works too.",
-    "`d!autoproxy` shows the state, `d!autoproxy on|off` sets it. `d!ap` works too.",
-    "React ❌ to delete a proxied message, ❓ to see who sent it.",
-].join("\n");
-
 const commands: Record<string, CommandHandler> = {
     edit: editCommand,
     e: editCommand,
@@ -26,9 +21,7 @@ const commands: Record<string, CommandHandler> = {
     explain: explainCommand,
     autoproxy: autoproxyCommand,
     ap: autoproxyCommand,
-    help: async (message) => {
-        await message.reply(helpText);
-    },
+    help: helpCommand
 };
 
 // True when the message was a command, so it isn't proxied as well