don't violate the DMCA part 2

This commit is contained in:
Skye 2023-03-10 20:53:16 +09:00
parent 0bcfee41e8
commit 56a80c763e
Signed by: me
GPG key ID: 0104BC05F41B77B8

View file

@ -42,6 +42,8 @@ client.on("messageCreate", async (message) => {
if (message.content.startsWith("\\")) return; if (message.content.startsWith("\\")) return;
if (message.channel.type != ChannelType.GuildText) return; if (message.channel.type != ChannelType.GuildText) return;
// "adapted" from https://github.com/ryanccn/blahaj/blob/main/src/chat.ts
await message.channel.sendTyping(); await message.channel.sendTyping();
const typingTimer = setInterval(() => { const typingTimer = setInterval(() => {
if (message.channel.type == ChannelType.GuildText) if (message.channel.type == ChannelType.GuildText)