Fixed bug

This commit is contained in:
dbroqua 2020-01-10 20:38:56 +01:00
parent 2b89832de4
commit 3e37e7eb7f

View File

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