BBLBTV_Suzie/data/group/commands.js

49 lines
1.4 KiB
JavaScript
Raw Normal View History

2020-06-30 10:41:39 +01:00
const name = process.env.BOT_NAME
const channel = process.env.CHANNEL
2020-06-29 21:39:15 +01:00
const commands = [
{
"NAME": "/help",
"TEXT": [
2020-06-29 22:43:41 +01:00
"please PM me @" + process.env.BOT_USERNAME + " and i'll try to help.",
2020-06-29 21:39:15 +01:00
]
2020-06-29 22:43:41 +01:00
},
{
"NAME": "/sub_status",
"TEXT": []
2020-06-30 10:09:22 +01:00
},
2020-06-30 10:41:39 +01:00
{
"NAME": "#FAQ",
"TEXT": [
"Please use the buttons below to navigate"
],
"MENU": '[["- FAQ", "- Applications"]]'
},
2020-06-30 10:09:22 +01:00
{
"NAME": "/start",
2020-06-30 10:41:39 +01:00
"TEXT": [
"I'm " + name,
"I'm the " + channel + " Bot, and can answer your questions",
"Please type #FAQ to open the buttons",
]
2020-06-29 21:39:15 +01:00
}
]
module.exports = commands;
2020-06-30 10:41:39 +01:00
// bot.onText(/^(\/start|\/help|- Home)$/, (msg) => {
// logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Started a Chat with me");
// bot.sendMessage(msg.chat.id, "I'm " + name).then(() => {
// return bot.sendMessage(msg.chat.id, "I'm the " + channel + " Bot, and can answer your questions").then(() => {
// return bot.sendMessage(msg.chat.id, "Please use the buttons below to navigate", {
// "reply_markup": {
// "keyboard": [
// ["- FAQ", "- Applications"]
// ]
// }
// })
// })
// })
// })
2020-06-29 21:39:15 +01:00