match exact for messages
This commit is contained in:
parent
fa8c8006d6
commit
39245fcb8d
40
app.js
40
app.js
@ -12,8 +12,8 @@ const bot = new TelegramBot(token, {
|
||||
|
||||
bot.on('message', (msg) => {
|
||||
|
||||
const hi = "help";
|
||||
if (msg.text.toString().toLowerCase().includes(hi)) {
|
||||
const help = "help";
|
||||
if (msg.text.toString().toLowerCase().includes(help)) {
|
||||
bot.sendMessage(msg.chat.id, "Hello " + msg.from.first_name + " Please PM me @" + process.env.BOT_USERNAME + " and i'll help.");
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const subPrice = "subscription prices";
|
||||
if (msg.text.toString().toLowerCase().includes(subPrice)) {
|
||||
if (msg.text.toString().toLowerCase() === subPrice) {
|
||||
bot.sendMessage(msg.chat.id, "PREMIUM PLUS ----£30\nVIP-----------------------£25\nOLD PREMIUM -----£17\nBLUEMOON ---------£15\nKDB --------------------£14\nGOLD ------------------£13\nTECHNOID -----------£13\nBRONZE --------------£10\nSOL ---------------------£10")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "All of these prices are for 12 Month subscription subs").then(() => {
|
||||
@ -33,7 +33,7 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const howToSignUp = "how to get a subscription?";
|
||||
if (msg.text.toString().toLowerCase().includes(howToSignUp)) {
|
||||
if (msg.text.toString().toLowerCase() === howToSignUp) {
|
||||
bot.sendMessage(msg.chat.id, "To purchase a subscription you need to send a DM to any of the Admins in the group @Scotslad, @manclad72 or @bob_15.")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "PLEASE ONLY DM ONE ADMIN AND WAIT FOR THEM TO GET BACK TO YOU.").then(() => {
|
||||
@ -43,12 +43,12 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const suburls = "subscription urls";
|
||||
if (msg.text.toString().toLowerCase().includes(suburls)) {
|
||||
if (msg.text.toString().toLowerCase() === suburls) {
|
||||
bot.sendMessage(msg.chat.id, "In this IPTV room we don't give out sub URLs or m3us. We have dedicated apps to play all subs on your Android box or IPTV player in our FileLinked.");
|
||||
}
|
||||
|
||||
const multipleDevices = "can i stream on multiple devices?";
|
||||
if (msg.text.toString().toLowerCase().includes(multipleDevices)) {
|
||||
if (msg.text.toString().toLowerCase() === multipleDevices) {
|
||||
bot.sendMessage(msg.chat.id, "No. All subs sold is this room are one connection subs unless otherwise stated.\n\nThis means that you can have your sub loaded onto as many devices as you want (eg Android phone, tablet, Firestick, Android TV box) BUT you can only play the sub from one device at a time.")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "Otherwise you may lose your sub altogether!")
|
||||
@ -56,7 +56,7 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const updatesGroup = "updates group";
|
||||
if (msg.text.toString().toLowerCase().includes(updatesGroup)) {
|
||||
if (msg.text.toString().toLowerCase() === updatesGroup) {
|
||||
bot.sendMessage(msg.chat.id, "The updates groups can be found here")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "https://t.me/joinchat/AAAAAFDxZ2rzgAW5acahxA").then(() => {
|
||||
@ -66,7 +66,7 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const installOnFire = "install filelinked on firestick";
|
||||
if (msg.text.toString().toLowerCase().includes(installOnFire)) {
|
||||
if (msg.text.toString().toLowerCase() === installOnFire) {
|
||||
bot.sendMessage(msg.chat.id, "Step 1:\n\nGo to Settings > device/my fire tv > developer options > apps from unknown sources on")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "Step 2: download an app called downloader. (Orange icon)").then(() => {
|
||||
@ -80,7 +80,7 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const installoOnAndroid = "install filelinked on android";
|
||||
if (msg.text.toString().toLowerCase().includes(installoOnAndroid)) {
|
||||
if (msg.text.toString().toLowerCase() === installoOnAndroid) {
|
||||
bot.sendMessage(msg.chat.id, "First thing you need to do is go to browser on your Android TV box and enter www.filelinked.com")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "From this browser page, download FileLinked.").then(() => {
|
||||
@ -96,12 +96,12 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const SurfShark = "vpn (surfshark)";
|
||||
if (msg.text.toString().toLowerCase().includes(SurfShark)) {
|
||||
if (msg.text.toString().toLowerCase() === 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 iptvGuidance = "iptv guidance";
|
||||
if (msg.text.toString().toLowerCase().includes(iptvGuidance)) {
|
||||
if (msg.text.toString().toLowerCase() === iptvGuidance) {
|
||||
bot.sendMessage(msg.chat.id, "🚨Basic IPTV Guidance🚨\n\nPlease see below some very basic IPTV guidance for those who are new to IPTV")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "1. What is a sub? A sub is what provides you with your live tv and movies/VOD... They are called different names e.g. GOLD, PREMIUM, ETC... All offer very similar channels with the difference of VOD, Series and time and money spent on servers.").then(() => {
|
||||
@ -117,7 +117,7 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const iptvMaintenance = "basic iptv maintenance";
|
||||
if (msg.text.toString().toLowerCase().includes(iptvMaintenance)) {
|
||||
if (msg.text.toString().toLowerCase() === iptvMaintenance) {
|
||||
bot.sendMessage(msg.chat.id, "🚨Basic IPTV Maintenance🚨\n\nReboot Router, Reboot Device.\nClear all app caches - Go to settings - Applications - Manage installed applications - click on app and select clear cache. Do this for all installed applications.")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "To refresh DNS\nClick on add user\nRefresh DNS\nList users\nLog back in").then(() => {
|
||||
@ -131,12 +131,12 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const doIneedVPN = "do i need a vpn?";
|
||||
if (msg.text.toString().toLowerCase().includes(doIneedVPN)) {
|
||||
if (msg.text.toString().toLowerCase() === doIneedVPN) {
|
||||
bot.sendMessage(msg.chat.id, "You only need a VPN if your subscription isn't working at the time of use, normally only when the Football is on do the subs get blocked, if they do, connect using SurfShark using the details provided in the updates channel, DO NOT SHARE THESE DETAILS!");
|
||||
}
|
||||
|
||||
const iptvBible = "iptv bible";
|
||||
if (msg.text.toString().toLowerCase().includes(iptvBible)) {
|
||||
if (msg.text.toString().toLowerCase() === iptvBible) {
|
||||
bot.sendMessage(msg.chat.id, "So the first thing I want to get out of the way is the stigma of download speeds and requirements for download speed. \r\n\r\nIn streaming like we do you will be just fine with at least 5mbps. I myself have streamed tethering off my phone with only 3mbps, but let\u2019s set the standard at 5mbps. If you have at least 5mbps and you are having issues with buffering, the download speed is not your problem. \r\n\r\nA lot of people seem to think that buffering is caused by low download speeds but that is just not true. \r\n\r\nLike I said above you can stream perfectly fine on 5mbps, in the same token you can have GB download speeds and have buffering issues.\r\n\r\nThere are a few things that will cause buffering.")
|
||||
.then(() => {
|
||||
return bot.sendMessage(msg.chat.id, "1. HEAVY TRAFFIC ON THE SERVER THE LINK IS COMING FROM:\r\n\r\nYes it\u2019s nice to be able to watch movies and tv shows for free using the free links, I mean free anything is always great. But keep in mind free is not always the best. The servers that the free links come from can get congested with heavy traffic spiking the bandwidth usage of that server. \r\n\r\nThis is common during heavy streaming hours (night time and weekends). Unfortunately there is nothing you can do on your end to fix this, the only thing you can do is try another link. \r\n\r\nI highly suggest spending a few bucks for real-debrid. Real-debrid is a premium service that uses tons of premium servers all over the world. They only allow a small amount of bandwidth usage per server so you the user don\u2019t run into heavy traffic. This helps eliminate buffering. If you\u2019re still having issues with buffering using real-debrid then more then likely it\u2019s on your end. I\u2019m not saying real-debrid doesn\u2019t run into issues but It\u2019s Technology, it does have it\'s down points at times.").then(() => {
|
||||
@ -152,12 +152,12 @@ bot.on('message', (msg) => {
|
||||
}
|
||||
|
||||
const howToResetCache = "how do i clear cache?";
|
||||
if (msg.text.toString().toLowerCase().includes(howToResetCache)) {
|
||||
if (msg.text.toString().toLowerCase() === howToResetCache) {
|
||||
bot.sendMessage(msg.chat.id, "Cache files are main source of errors and problems in functioning of Apps, by clearing cache may solve most of the problems associated with Apps. To clear cache, go to Settings > Application > Manage apps > Select \"All\" tabs, select the app which was producing error and then tap Clear cache.");
|
||||
}
|
||||
|
||||
const whatAppShouldIUse = "what app should i use?";
|
||||
if (msg.text.toString().toLowerCase().includes(whatAppShouldIUse)) {
|
||||
if (msg.text.toString().toLowerCase() === whatAppShouldIUse) {
|
||||
bot.sendMessage(msg.chat.id, "What Subscription do you have?", {
|
||||
"reply_markup": {
|
||||
"keyboard": [
|
||||
@ -181,17 +181,17 @@ bot.on('message', (msg) => {
|
||||
const vip = "vip"
|
||||
const premiumPlus = "premium plus"
|
||||
const oldPremium = "old premium"
|
||||
if ((msg.text.toString().toLowerCase().includes(vip)) || (msg.text.toString().toLowerCase().includes(premiumPlus)) || (msg.text.toString().toLowerCase().includes(oldPremium))) {
|
||||
if (msg.text.toString().toLowerCase() === vip || msg.text.toString().toLowerCase() === premiumPlus || msg.text.toString().toLowerCase() === oldPremium) {
|
||||
bot.sendMessage(msg.chat.id, "You can use -\nXCIPTV Blue\nSky Q Yellow\nSMARTERS Green\n\nAll can be downloaded from our FileLinked")
|
||||
}
|
||||
|
||||
const gold = "gold"
|
||||
if (msg.text.toString().toLowerCase().includes(gold)) {
|
||||
if (msg.text.toString().toLowerCase() === gold) {
|
||||
bot.sendMessage(msg.chat.id, "You can use -\nXCIPTV Red\nSky Q Yellow\nSMARTERS Green\n\nAll can be downloaded from our FileLinked")
|
||||
}
|
||||
|
||||
const bronze = "bronze"
|
||||
if (msg.text.toString().toLowerCase().includes(bronze)) {
|
||||
if (msg.text.toString().toLowerCase() === bronze) {
|
||||
bot.sendMessage(msg.chat.id, "You can use -\nXCIPTV Red\nSMARTERS Green\n\nAll can be downloaded from our FileLinked")
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ bot.on('message', (msg) => {
|
||||
const bluemoon = "bluemoon"
|
||||
const sol = "sol"
|
||||
const gambler = "gambler"
|
||||
if ((msg.text.toString().toLowerCase().includes(newPremium)) || (msg.text.toString().toLowerCase().includes(kdb)) || (msg.text.toString().toLowerCase().includes(gambler)) || (msg.text.toString().toLowerCase().includes(technoid)) || (msg.text.toString().toLowerCase().includes(bluemoon)) || (msg.text.toString().toLowerCase().includes(sol))) {
|
||||
if ((msg.text.toString().toLowerCase() === newPremium) || (msg.text.toString().toLowerCase() === kdb) || (msg.text.toString().toLowerCase() === gambler) || (msg.text.toString().toLowerCase() === technoid) || (msg.text.toString().toLowerCase() === bluemoon) || (msg.text.toString().toLowerCase()===sol)) {
|
||||
bot.sendMessage(msg.chat.id, "You can use -\nSMARTERS Green\n\nAll can be downloaded from our FileLinked")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user