|
|
@ -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)
|
|
|
|