From 75843272d81068766676179689cd65d565af66d9 Mon Sep 17 00:00:00 2001 From: Skye Date: Fri, 10 Mar 2023 20:55:50 +0900 Subject: [PATCH] die --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index eb653fc..d69d543 100644 --- a/index.ts +++ b/index.ts @@ -41,6 +41,7 @@ client.on("messageCreate", async (message) => { if (message.author.bot) return; if (message.content.startsWith("\\")) return; if (message.channel.type != ChannelType.GuildText) return; + if (message.content == "die") process.exit(1); // "adapted" from https://github.com/ryanccn/blahaj/blob/main/src/chat.ts