This commit is contained in:
Karl 2020-07-15 08:41:54 +00:00
parent eb982c8b65
commit d4420d58bb
3 changed files with 24 additions and 7 deletions

View File

@ -3,7 +3,7 @@ const channel = process.env.CHANNEL
module.exports = {
welcomeMessage: (bot, msg, logger) => {
const newUserMention = "<a href=\"tg:\/\/user?id=" + msg.new_chat_member.id + "\">@" + msg.new_chat_member.first_name + "<\/a>"
bot.sendMessage(msg.chat.id, "Hello " + newUserMention + ", Welcome to " + channel + ". \n\nPlease PM me @" + process.env.BOT_USERNAME + " to find out all needed information about our service before asking an admin or posting in here.\n\nIf you do ask questions, and its obvious you have not spoken to me, you will be booted from the room. This is IPTV, admins don't have time for hand holding.!!!", { parse_mode: "HTML" });
bot.sendMessage(msg.chat.id, "Hello " + newUserMention + ", Welcome to " + channel + ". \n\nPlease PM me @" + process.env.BOT_USERNAME + " to find out all needed information about our service before asking an admin or posting in here.\n\nIf you do ask questions, and its obvious you have not spoken to me, Sarah will be very upset. This is IPTV, you need to be willing to learn a little bit about how everything works and how to fix and maintain your device in order to get the best from it.!!!", { parse_mode: "HTML" });
logger.info("ID - " + msg.new_chat_member.id + " First Name - " + msg.new_chat_member.first_name + " joined the group");
}
};

BIN
data/group/Sports.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -19,7 +19,8 @@
"Blue XCIPTV",
"Yellow Sky Q",
"Purple IM",
"Green SMARTERS"
"Green SMARTERS",
"Tivimate Orange"
]
},
{
@ -31,7 +32,8 @@
"Blue XCIPTV",
"Yellow Sky Q",
"Purple IM",
"Green SMARTERS"
"Green SMARTERS",
"Tivimate Orange"
]
},
{
@ -43,7 +45,8 @@
"Blue XCIPTV",
"Yellow Sky Q",
"Purple IM",
"Green SMARTERS"
"Green SMARTERS",
"Tivimate Orange"
]
},
{
@ -55,18 +58,32 @@
"Red XCIPTV",
"Yellow Sky Q",
"Purple IM",
"Green SMARTERS"
"Green SMARTERS",
"Tivimate Orange"
]
},
{
"SUB": "Sports (KDB)",
"COST": 0,
"STATUS": 1,
"IMAGE": "./data/group/Sports.jpg",
"APPS": [
"Red XCIPTV",
"White&Black IM",
"Green SMARTERS",
"Tivimate Orange"
]
},
{
"SUB": "Bronze",
"COST": 0,
"STATUS": 1,
"IMAGE": "./data/group/Bronze.jpg",
"IMAGE": "X",
"APPS": [
"Red XCIPTV",
"White&Black IM",
"Green SMARTERS"
"Green SMARTERS",
"Tivimate Orange"
]
},
{