From 8298027d4d03d60c47778937df2b96fb96f90442 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Mon, 21 Jun 2021 18:27:06 +0200 Subject: [PATCH] fixed infinite loop + fake NOT_FOUND messages --- src/Bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bot.ts b/src/Bot.ts index 67f119a..721157d 100644 --- a/src/Bot.ts +++ b/src/Bot.ts @@ -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); } });