From ceda2615bf901d98ab24dcab74928acd14106924 Mon Sep 17 00:00:00 2001 From: "karl.hudgell" Date: Sun, 21 Jun 2020 14:10:28 +0100 Subject: [PATCH] more saves --- app.js | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 321ed30..e4681e4 100644 --- a/app.js +++ b/app.js @@ -91,6 +91,17 @@ bot.on('message', (msg) => { }) } + const SurfShark = "vpn (surfshark)"; + if (msg.text.toString().toLowerCase().includes(SurfShark)) { + bot.sendMessage(msg.chat.id, "SurfShark is the VPN that we advise you use on your device to bypass the blocks,\n\nYou can install this on your device from our FileLinked\n\nWe provide a username and password for you to use in the updates groups. DO NOT SHARE THE DETAILS"); + } + + const flieLinked = "filelinked"; + if (msg.text.toString().toLowerCase().includes(flieLinked)) { + bot.sendMessage(msg.chat.id, "Hope to see you around again , Bye"); + } + + }), bot.onText(/^(\/start|Home)$/, (msg) => { @@ -105,7 +116,7 @@ bot.on('message', (msg) => { }) -bot.onText(/FAQ/, (msg) => { +bot.onText(/^FAQ$/, (msg) => { bot.sendMessage(msg.chat.id, "Frequently Asked Questions") .then(() => { return bot.sendMessage(msg.chat.id, "Please only ask an Admin, if you can't find the answer here..", { @@ -119,6 +130,27 @@ bot.onText(/FAQ/, (msg) => { }) }) +bot.onText(/Applications/, (msg) => { + bot.sendMessage(msg.chat.id, "We have a number of different applications that work with our subs, here is an overview of subs/apps colour coded by the icon in our FileLinked").then(() => { + return bot.sendMessage(msg.chat.id, "There are 2 new XCIPTV apps, Blue and Red.\nEach have 3 different sub DNS (URLs) already embedded in the players.").then(() => { + return bot.sendMessage(msg.chat.id, "Sky Q app (yellow player) this holds 4 of the room subs.").then(() => { + return bot.sendMessage(msg.chat.id, "All of the room subs play on the green smarters player", { + "reply_markup": { + "keyboard": [ + ["What app should I use?"], + ["VPN (SurfShark)"], + ["FileLinked"], + ["Home"] + ] + } + }) + }) + }) + }) +}) + + + bot.onText(/^Subscriptions$/, (msg) => { bot.sendMessage(msg.chat.id, "Please only ask an Admin, if you can't find the answer here..", { @@ -133,4 +165,18 @@ bot.onText(/^Subscriptions$/, (msg) => { ] } }) +}) + +bot.onText(/FileLinked/, (msg) => { + bot.sendMessage(msg.chat.id, "Frequently Asked Questions") + .then(() => { + return bot.sendMessage(msg.chat.id, "Please only ask an Admin, if you can't find the answer here..", { + "reply_markup": { + "keyboard": [ + ["Subscriptions", "IPTV"], + ["Home"] + ] + } + }) + }) }) \ No newline at end of file