Fixed bug
This commit is contained in:
parent
2b89832de4
commit
3e37e7eb7f
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -201,7 +201,7 @@ const actions = (where, message, from) => {
|
|||
botSay(where, process.env.PUBLIC_RADIO_STREAM)
|
||||
break
|
||||
case '!mute':
|
||||
if (exploded[2] && ['on', 'off', 'state'].exploded[2] !== -1) {
|
||||
if (exploded[2] && ['on', 'off', 'state'].indexOf(exploded[2]) !== -1) {
|
||||
switch (exploded[2]) {
|
||||
case 'on':
|
||||
isMute = true
|
||||
|
|
Loading…
Reference in a new issue