epic fail
This commit is contained in:
parent
66f167462a
commit
a01b30c2d2
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -29,7 +29,7 @@ client.on(Events.MessageCreate, async interaction => {
|
|||
let msg = interaction.content;
|
||||
let channel = interaction.channel.name;
|
||||
|
||||
if (channel.indexOf('play') == -1 && channel.indexOf('bot') && channel.indexOf('spam')) return;
|
||||
if (channel.indexOf('play') == -1 && channel.indexOf('bot') == -1 && channel.indexOf('spam') == -1) return;
|
||||
|
||||
if (msg.startsWith('!')) {
|
||||
msg = `/${msg.slice(1)}`;
|
||||
|
|
Loading…
Reference in a new issue