This commit is contained in:
karl.hudgell 2020-06-30 10:50:07 +01:00
parent c84bc6f03b
commit 64dc6d46da
3 changed files with 7 additions and 6 deletions

View File

@ -30,7 +30,7 @@ module.exports = {
await bot.sendMessage(msg.chat.id, m, {
parse_mode: "HTML",
"reply_markup": {
"keyboard": m
"keyboard": [[]]
}
})
}

View File

@ -13,7 +13,7 @@ const commands = [
"TEXT": []
},
{
"NAME": "#FAQ",
"NAME": "!FAQ",
"TEXT": [
"Please use the buttons below to navigate"
],
@ -24,8 +24,9 @@ const commands = [
"TEXT": [
"I'm " + name,
"I'm the " + channel + " Bot, and can answer your questions",
"Please type #FAQ to open the buttons",
]
"Please type !FAQ to open the buttons",
],
"MENU": '[[]]'
}
]

View File

@ -38,8 +38,8 @@ bot.on('message', (msg) => {
requests.joke(bot, msg, logger)
}
if (msg.text && msg.text.toString().includes("#FAQ")) {
common.chat(bot, msg, "#FAQ")
if (msg.text && msg.text.toString().includes("!FAQ")) {
common.chat(bot, msg, "!FAQ")
}
if (msg.text && msg.text.toString().includes("/start")) {