From 5f24355ed4a6dc7b3316a7e02005107700b2fffe Mon Sep 17 00:00:00 2001 From: Histmy Date: Sat, 14 Nov 2020 13:11:32 +0100 Subject: [PATCH] fix uppercase message not working --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 827df9b..01f44d5 100644 --- a/app.js +++ b/app.js @@ -59,8 +59,9 @@ function nula(a) { client.on('ready', () => console.log('A jedeš!')); client.on('message', mes => { - if (mes.content.startsWith(prefix)) { - const [...args] = mes.content.split(' ').slice(1); + if (process.env.IGNORE_MESS) return; + if (mes.content.toLowerCase().startsWith(prefix)) { + const [...args] = mes.content.toLowerCase().split(' ').slice(1); const komand = args[0]; const celArgs = args.slice(1).join(' '); let corict;