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;