From 64dc6d46dace7fd1d9853e7e50361e3d284750cd Mon Sep 17 00:00:00 2001 From: "karl.hudgell" Date: Tue, 30 Jun 2020 10:50:07 +0100 Subject: [PATCH] close --- data/bot/lib/common.js | 2 +- data/group/commands.js | 7 ++++--- test.js | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/data/bot/lib/common.js b/data/bot/lib/common.js index 0f71d66..7136a35 100644 --- a/data/bot/lib/common.js +++ b/data/bot/lib/common.js @@ -30,7 +30,7 @@ module.exports = { await bot.sendMessage(msg.chat.id, m, { parse_mode: "HTML", "reply_markup": { - "keyboard": m + "keyboard": [[]] } }) } diff --git a/data/group/commands.js b/data/group/commands.js index d21c058..0c288c7 100644 --- a/data/group/commands.js +++ b/data/group/commands.js @@ -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": '[[]]' } ] diff --git a/test.js b/test.js index 764ffbb..0ea4905 100644 --- a/test.js +++ b/test.js @@ -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")) {