quick fix

This commit is contained in:
karl.hudgell 2020-06-30 14:29:20 +01:00
parent 79672af370
commit 7c650f59e3

View File

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