working update for whatAppToUse

This commit is contained in:
karl.hudgell 2020-06-29 09:12:28 +01:00
parent f6be2fe889
commit 9770687a32
2 changed files with 16 additions and 29 deletions

View File

@ -36,21 +36,8 @@ module.exports = {
} }
} }
); );
bot.sendMessage(msg.chat.id, "You can use -" + string + "\n\nAll can be downloaded from our FileLinked") bot.sendMessage(msg.chat.id, checkSub + " 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")
// }
} }
} }

View File

@ -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": [