fix uppercase message not working
This commit is contained in:
parent
c7ddede3b9
commit
5f24355ed4
5
app.js
5
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user