clean ups

This commit is contained in:
karl.hudgell 2020-06-21 13:45:51 +01:00
parent a57a0628c0
commit 0035ed9573

6
app.js
View File

@ -10,7 +10,7 @@ bot.on('message', (msg) => {
const hi = "hi";
if (msg.text.toString().toLowerCase().indexOf(hi) === 0) {
bot.sendMessage(msg.chat.id, "Hello " + msg.from.first_name + " Please type /start");
bot.sendMessage(msg.chat.id, "Hello " + msg.from.first_name + " Please press /start");
}
const bye = "bye";
@ -43,8 +43,8 @@ bot.on('message', (msg) => {
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 suburls = "can i stream on multiple devices?";
if (msg.text.toString().toLowerCase().includes(suburls)) {
const multipleDevices = "can i stream on multiple devices?";
if (msg.text.toString().toLowerCase().includes(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!")