proper fix
This commit is contained in:
parent
067a264606
commit
4941d5cb3f
@ -24,8 +24,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
appSwitch: (bot, msg, logger) => {
|
appSwitch: (bot, msg, logger) => {
|
||||||
let string = ""
|
let string = ""
|
||||||
if (subArray.splice(-1,1).some(v => msg.text.toString().includes(v))) {
|
if (subArray.some(v => msg.text.toString().includes(v))) {
|
||||||
var checkSub = msg.text.substring(2)
|
var checkSub = msg.text.substring(2)
|
||||||
|
if (checkSub != "Home") {
|
||||||
subs.forEach(element => {
|
subs.forEach(element => {
|
||||||
if (element.SUB === checkSub) {
|
if (element.SUB === checkSub) {
|
||||||
element.APPS.forEach(element => {
|
element.APPS.forEach(element => {
|
||||||
@ -36,7 +37,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
bot.sendMessage(msg.chat.id, "You can use -" + string + "\n\nAll can be downloaded from our FileLinked")
|
bot.sendMessage(msg.chat.id, "You can use -" + string + "\n\nAll can be downloaded from our FileLinked")
|
||||||
}
|
}}
|
||||||
// }
|
// }
|
||||||
// if (subArray.indexOf(msg.text && msg.text.toString().toLowerCase())) {
|
// if (subArray.indexOf(msg.text && msg.text.toString().toLowerCase())) {
|
||||||
// var checkSub = msg.text.substring(2)
|
// var checkSub = msg.text.substring(2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user