This commit is contained in:
karl.hudgell 2020-06-21 14:40:31 +01:00
parent effd051761
commit badee320c2

22
app.js
View File

@ -131,7 +131,7 @@ bot.on('message', (msg) => {
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!"); 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"; const iptvBible = "iptv bible";
if (msg.text.toString().toLowerCase().includes(iptvBible)) { if (msg.text.toString().toLowerCase().includes(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.") 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.")
@ -148,6 +148,11 @@ bot.on('message', (msg) => {
}) })
} }
const howToResetCache = "how do i clear cache?";
if (msg.text.toString().toLowerCase().includes(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.");
}
}), }),
bot.onText(/^(\/start|Home)$/, (msg) => { bot.onText(/^(\/start|Home)$/, (msg) => {
@ -169,7 +174,9 @@ bot.onText(/^FAQ$/, (msg) => {
return bot.sendMessage(msg.chat.id, "Please only ask an Admin, if you can't find the answer here..", { return bot.sendMessage(msg.chat.id, "Please only ask an Admin, if you can't find the answer here..", {
"reply_markup": { "reply_markup": {
"keyboard": [ "keyboard": [
["Subscriptions", "IPTV"], ["Subscriptions"],
["IPTV"],
["Apps"],
["Home"] ["Home"]
] ]
} }
@ -239,3 +246,14 @@ bot.onText(/^FileLinked$/, (msg) => {
} }
}) })
}) })
bot.onText(/^Apps$/, (msg) => {
bot.sendMessage(msg.chat.id, "Apps FAQ", {
"reply_markup": {
"keyboard": [
["How do I clear cache?"],
["Home"]
]
}
})
})