We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df9b27 commit 2fdc705Copy full SHA for 2fdc705
1 file changed
src/events/messageUpdate.event.ts
@@ -18,6 +18,13 @@ export default async function (
18
19
if (oldMessage?.author?.bot) return
20
21
+ if (oldMessage.content === newMessage.content) return
22
+
23
+ const HOUR = 1000 * 60 * 60;
24
+ const anHourAgo = Date.now() - HOUR
25
26
+ if (newMessage.createdAt < anHourAgo) return
27
28
if (newMessage.content) {
29
const bannedWords = this.filter.findBannedWord(newMessage.content)
30
if (bannedWords.length >= 1 && newMessage.guild?.id === this.config.guilds.main)
0 commit comments