fix uppercase message not working

This commit is contained in:
Histmy 2020-11-14 13:11:32 +01:00
parent c7ddede3b9
commit 5f24355ed4

5
app.js
View File

@ -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;