From 7bc970a35704d602c58f7e52297e26da62e5f836 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Mon, 21 Jun 2021 18:33:44 +0200 Subject: [PATCH] fixed NOT_FOUND + error message color --- src/Bot.ts | 6 +++--- src/SystemMessage.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bot.ts b/src/Bot.ts index 721157d..65e5292 100644 --- a/src/Bot.ts +++ b/src/Bot.ts @@ -94,9 +94,9 @@ class Bot { return; } } - } - 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); + else { + this.messages.system.send('NOT_FOUND', { phrase: m.content, user: m.member || undefined }, m.channel); + } } }); } diff --git a/src/SystemMessage.ts b/src/SystemMessage.ts index 3be9032..7e58e06 100644 --- a/src/SystemMessage.ts +++ b/src/SystemMessage.ts @@ -31,7 +31,7 @@ class SystemMessageManager { this.ERROR = { title: '❌ An error occurred', bottomText: 'Something went wrong while processing your request.', - accentColor: '#f00', + accentColor: '#ff0000', showTimestamp: true } this.NOT_FOUND = {