fixed infinite loop + fake NOT_FOUND messages

This commit is contained in:
mmacierzanka committed 2021-06-21 18:27:06 +02:00
1 parent dc8d607b17
commit 8298027d4d
1 file changed
+1 -1
+1 -1
View File
@@ -95,7 +95,7 @@ class Bot {
} }
} }
} }
else { else if(m.content.startsWith(this.config.prefix) && !m.author.bot) {
this.messages.system.send('NOT_FOUND', { phrase: m.content, user: m.member || undefined }, m.channel); this.messages.system.send('NOT_FOUND', { phrase: m.content, user: m.member || undefined }, m.channel);
} }
}); });