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('ready', () => console.log('A jedeš!'));
|
||||||
|
|
||||||
client.on('message', mes => {
|
client.on('message', mes => {
|
||||||
if (mes.content.startsWith(prefix)) {
|
if (process.env.IGNORE_MESS) return;
|
||||||
const [...args] = mes.content.split(' ').slice(1);
|
if (mes.content.toLowerCase().startsWith(prefix)) {
|
||||||
|
const [...args] = mes.content.toLowerCase().split(' ').slice(1);
|
||||||
const komand = args[0];
|
const komand = args[0];
|
||||||
const celArgs = args.slice(1).join(' ');
|
const celArgs = args.slice(1).join(' ');
|
||||||
let corict;
|
let corict;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user