BBLBTV_Suzie/data/group/commands.js
karl.hudgell 64dc6d46da close
2020-06-30 10:50:07 +01:00

50 lines
1.4 KiB
JavaScript

const name = process.env.BOT_NAME
const channel = process.env.CHANNEL
const commands = [
{
"NAME": "/help",
"TEXT": [
"please PM me @" + process.env.BOT_USERNAME + " and i'll try to help.",
]
},
{
"NAME": "/sub_status",
"TEXT": []
},
{
"NAME": "!FAQ",
"TEXT": [
"Please use the buttons below to navigate"
],
"MENU": '[["- FAQ", "- Applications"]]'
},
{
"NAME": "/start",
"TEXT": [
"I'm " + name,
"I'm the " + channel + " Bot, and can answer your questions",
"Please type !FAQ to open the buttons",
],
"MENU": '[[]]'
}
]
module.exports = commands;
// 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"]
// ]
// }
// })
// })
// })
// })