more updates
This commit is contained in:
parent
b7f4c985a3
commit
a57a0628c0
104
app.js
104
app.js
@ -2,51 +2,74 @@ const TelegramBot = require('node-telegram-bot-api');
|
||||
|
||||
const token = process.env.BOTTOKEN;
|
||||
|
||||
const bot = new TelegramBot(token, { polling: true });
|
||||
const bot = new TelegramBot(token, {
|
||||
polling: true
|
||||
});
|
||||
|
||||
bot.on('message', (msg) => {
|
||||
|
||||
var hi = "hi";
|
||||
if (msg.text.toString().toLowerCase().indexOf(hi) === 0) {
|
||||
bot.sendMessage(msg.chat.id, "Hello " + msg.from.first_name + " Please type /start");
|
||||
}
|
||||
const hi = "hi";
|
||||
if (msg.text.toString().toLowerCase().indexOf(hi) === 0) {
|
||||
bot.sendMessage(msg.chat.id, "Hello " + msg.from.first_name + " Please type /start");
|
||||
}
|
||||
|
||||
var bye = "bye";
|
||||
if (msg.text.toString().toLowerCase().includes(bye)) {
|
||||
bot.sendMessage(msg.chat.id, "Hope to see you around again , Bye");
|
||||
}
|
||||
const bye = "bye";
|
||||
if (msg.text.toString().toLowerCase().includes(bye)) {
|
||||
bot.sendMessage(msg.chat.id, "Hope to see you around again , Bye");
|
||||
}
|
||||
|
||||
var subPrice = "subscription prices";
|
||||
if (msg.text.toString().toLowerCase().includes(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(() => {
|
||||
return bot.sendMessage(msg.chat.id, "Keep an eye out though because we offer special deals on different subs from time to time.")
|
||||
const subPrice = "subscription prices";
|
||||
if (msg.text.toString().toLowerCase().includes(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(() => {
|
||||
return bot.sendMessage(msg.chat.id, "Keep an eye out though because we offer special deals on different subs from time to time.")
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const howToSignUp = "how to get a subscription?";
|
||||
if (msg.text.toString().toLowerCase().includes(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(() => {
|
||||
return bot.sendMessage(msg.chat.id, "When you DM to purchase the subscription please let the Admin know:\n\n1. what device the sub is going onto\n2. If there's a specific username you would like and\n3. If you don't want adult channels included. If you don't want adult channels and don't mention it when purchasing Your sub WILL be issued WITH adult channels. These can't be removed")
|
||||
const howToSignUp = "how to get a subscription?";
|
||||
if (msg.text.toString().toLowerCase().includes(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(() => {
|
||||
return bot.sendMessage(msg.chat.id, "When you DM to purchase the subscription please let the Admin know:\n\n1. what device the sub is going onto\n2. If there's a specific username you would like and\n3. If you don't want adult channels included. If you don't want adult channels and don't mention it when purchasing Your sub WILL be issued WITH adult channels. These can't be removed")
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
var suburls = "subscription urls";
|
||||
if (msg.text.toString().toLowerCase().includes(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 suburls = "subscription urls";
|
||||
if (msg.text.toString().toLowerCase().includes(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 suburls = "can i stream on multiple devices?";
|
||||
if (msg.text.toString().toLowerCase().includes(suburls)) {
|
||||
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!")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
var updatesGroup = "updates group";
|
||||
if (msg.text.toString().toLowerCase().includes(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(() => {
|
||||
return bot.sendMessage(msg.chat.id, "Please join for BBLBTV updates")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
}),
|
||||
bot.onText(/^(\/start|Home)$/, (msg) => {
|
||||
|
||||
bot.sendMessage(msg.chat.id, "Please use the buttons below to navigate", {
|
||||
"reply_markup": {
|
||||
"keyboard": [["FAQ", "Applications"]]
|
||||
"keyboard": [
|
||||
["FAQ", "Applications"]
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
@ -58,7 +81,10 @@ bot.onText(/FAQ/, (msg) => {
|
||||
.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"]]
|
||||
"keyboard": [
|
||||
["Subscriptions", "IPTV"],
|
||||
["Home"]
|
||||
]
|
||||
}
|
||||
})
|
||||
})
|
||||
@ -68,12 +94,14 @@ bot.onText(/FAQ/, (msg) => {
|
||||
bot.onText(/^Subscriptions$/, (msg) => {
|
||||
bot.sendMessage(msg.chat.id, "Please only ask an Admin, if you can't find the answer here..", {
|
||||
"reply_markup": {
|
||||
"keyboard": [["Subscription Prices"],
|
||||
["How to get a subscription?"],
|
||||
["Subscription URLs", "Can I stream on multiple devices?"],
|
||||
["Updates Group"],
|
||||
["Install FileLinked on FireStick", "Install FileLinked on Android"],
|
||||
["Home"]]
|
||||
"keyboard": [
|
||||
["Subscription Prices"],
|
||||
["How to get a subscription?"],
|
||||
["Subscription URLs", "Can I stream on multiple devices?"],
|
||||
["Updates Group"],
|
||||
["Install FileLinked on FireStick", "Install FileLinked on Android"],
|
||||
["Home"]
|
||||
]
|
||||
}
|
||||
})
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user