quick fix
This commit is contained in:
parent
79672af370
commit
7c650f59e3
@ -21,7 +21,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
appSwitch: (bot, msg, logger) => {
|
appSwitch: (bot, msg, logger) => {
|
||||||
let string = ""
|
let string = ""
|
||||||
if (subArray.some(v => msg.text.toString().includes(v))) {
|
if (subArray.some(v => msg.text && msg.text.toString().includes(v))) {
|
||||||
var checkSub = msg.text.substring(2)
|
var checkSub = msg.text.substring(2)
|
||||||
if (checkSub != "Home") {
|
if (checkSub != "Home") {
|
||||||
subs.forEach(element => {
|
subs.forEach(element => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user