50 lines
1.4 KiB
JavaScript
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"]
|
|
// ]
|
|
// }
|
|
// })
|
|
// })
|
|
// })
|
|
// })
|
|
|