close
This commit is contained in:
parent
c84bc6f03b
commit
64dc6d46da
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
await bot.sendMessage(msg.chat.id, m, {
|
await bot.sendMessage(msg.chat.id, m, {
|
||||||
parse_mode: "HTML",
|
parse_mode: "HTML",
|
||||||
"reply_markup": {
|
"reply_markup": {
|
||||||
"keyboard": m
|
"keyboard": [[]]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ const commands = [
|
|||||||
"TEXT": []
|
"TEXT": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"NAME": "#FAQ",
|
"NAME": "!FAQ",
|
||||||
"TEXT": [
|
"TEXT": [
|
||||||
"Please use the buttons below to navigate"
|
"Please use the buttons below to navigate"
|
||||||
],
|
],
|
||||||
@ -24,8 +24,9 @@ const commands = [
|
|||||||
"TEXT": [
|
"TEXT": [
|
||||||
"I'm " + name,
|
"I'm " + name,
|
||||||
"I'm the " + channel + " Bot, and can answer your questions",
|
"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": '[[]]'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
4
test.js
4
test.js
@ -38,8 +38,8 @@ bot.on('message', (msg) => {
|
|||||||
requests.joke(bot, msg, logger)
|
requests.joke(bot, msg, logger)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg.text && msg.text.toString().includes("#FAQ")) {
|
if (msg.text && msg.text.toString().includes("!FAQ")) {
|
||||||
common.chat(bot, msg, "#FAQ")
|
common.chat(bot, msg, "!FAQ")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg.text && msg.text.toString().includes("/start")) {
|
if (msg.text && msg.text.toString().includes("/start")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user