working update for whatAppToUse
This commit is contained in:
parent
f6be2fe889
commit
9770687a32
@ -27,30 +27,17 @@ module.exports = {
|
|||||||
if (subArray.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") {
|
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 => {
|
||||||
let catString = element
|
let catString = element
|
||||||
string += '\n' + catString;
|
string += '\n' + catString;
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
);
|
||||||
|
bot.sendMessage(msg.chat.id, checkSub + " 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())) {
|
|
||||||
// var checkSub = msg.text.substring(2)
|
|
||||||
// subs.forEach(element => {
|
|
||||||
// if (element.SUB === checkSub) {
|
|
||||||
// element.APPS.forEach(element => {
|
|
||||||
// let catString = element
|
|
||||||
// string += '\n' + catString;
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// );
|
|
||||||
// bot.sendMessage(msg.chat.id, "You can use -" + string + "\n\nAll can be downloaded from our FileLinked")
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
[{
|
[{
|
||||||
"SUB": "Insanity",
|
"SUB": "Insanity",
|
||||||
"COST": "X",
|
"COST": 0,
|
||||||
"STATUS": 1,
|
"STATUS": 1,
|
||||||
"IMAGE": "./data/group/Insanity.jpg",
|
"IMAGE": "./data/group/Insanity.jpg",
|
||||||
"APPS": [
|
"APPS": [
|
||||||
@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"SUB": "VIP",
|
"SUB": "VIP",
|
||||||
"COST": "X",
|
"COST": 0,
|
||||||
"STATUS": 1,
|
"STATUS": 1,
|
||||||
"IMAGE": "./data/group/VIP.jpg",
|
"IMAGE": "./data/group/VIP.jpg",
|
||||||
"APPS": [
|
"APPS": [
|
||||||
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"SUB": "Premium Plus",
|
"SUB": "Premium Plus",
|
||||||
"COST": "X",
|
"COST": 0,
|
||||||
"STATUS": 1,
|
"STATUS": 1,
|
||||||
"IMAGE": "./data/group/Premium_Plus.jpg",
|
"IMAGE": "./data/group/Premium_Plus.jpg",
|
||||||
"APPS": [
|
"APPS": [
|
||||||
@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"SUB": "Premium",
|
"SUB": "Premium",
|
||||||
"COST": "X",
|
"COST": 0,
|
||||||
"STATUS": 1,
|
"STATUS": 1,
|
||||||
"IMAGE": "./data/group/Premium.jpg",
|
"IMAGE": "./data/group/Premium.jpg",
|
||||||
"APPS": [
|
"APPS": [
|
||||||
@ -39,7 +39,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"SUB": "Gold",
|
"SUB": "Gold",
|
||||||
"COST": "X",
|
"COST": 0,
|
||||||
"STATUS": 1,
|
"STATUS": 1,
|
||||||
"IMAGE": "./data/group/Gold.jpg",
|
"IMAGE": "./data/group/Gold.jpg",
|
||||||
"APPS": [
|
"APPS": [
|
||||||
@ -48,7 +48,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"SUB": "Bronze",
|
"SUB": "Bronze",
|
||||||
"COST": "X",
|
"COST": 0,
|
||||||
"STATUS": 1,
|
"STATUS": 1,
|
||||||
"IMAGE": "./data/group/Bronze.jpg",
|
"IMAGE": "./data/group/Bronze.jpg",
|
||||||
"APPS": [
|
"APPS": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user