From d1759f4a99b42c23716bf2e601c7d57f0b8df385 Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Tue, 21 Feb 2023 11:52:23 +1100 Subject: [PATCH] Increase intervals on bot's message. --- src/events/messageCreate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 6414cb7..c2fa1a6 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -18,7 +18,7 @@ export default { automodded = true; const threshold = 30000; message.delete().catch(err=>console.log('bannedWords automod; msg got possibly deleted by another bot.')) - message.channel.send('That word is banned here.').then((x)=>setTimeout(()=>x.delete(), 5000)); + message.channel.send('That word is banned here.').then((x)=>setTimeout(()=>x.delete(), 10000)); if (client.repeatedMessages[message.author.id]){ // add this message to the list client.repeatedMessages[message.author.id].data.set(message.createdTimestamp, {cont: 0, ch: message.channelId}); @@ -49,7 +49,7 @@ export default { automodded = true; const threshold = 60000; message.delete().catch(err=>console.log('advertisement automod; msg got possibly deleted by another bot.')) - message.channel.send('Advertising other Discord servers is not allowed.').then(x=>setTimeout(()=>x.delete(), 10000)) + message.channel.send('Advertising other Discord servers is not allowed.').then(x=>setTimeout(()=>x.delete(), 15000)) if (client.repeatedMessages[message.author.id]){ client.repeatedMessages[message.author.id].data.set(message.createdTimestamp,{cont:1,ch:message.channelId});