From 56a80c763ec01d147d8b8f995b42bb8ed9a79f04 Mon Sep 17 00:00:00 2001 From: Skye Date: Fri, 10 Mar 2023 20:53:16 +0900 Subject: [PATCH] don't violate the DMCA part 2 --- index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.ts b/index.ts index 27a67d7..eb653fc 100644 --- a/index.ts +++ b/index.ts @@ -42,6 +42,8 @@ client.on("messageCreate", async (message) => { if (message.content.startsWith("\\")) return; if (message.channel.type != ChannelType.GuildText) return; + // "adapted" from https://github.com/ryanccn/blahaj/blob/main/src/chat.ts + await message.channel.sendTyping(); const typingTimer = setInterval(() => { if (message.channel.type == ChannelType.GuildText)