don't violate the DMCA part 2
This commit is contained in:
parent
0bcfee41e8
commit
56a80c763e
1 changed files with 2 additions and 0 deletions
2
index.ts
2
index.ts
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue