From 10f4616d55c56efb832ec95e8e063b786f84858b Mon Sep 17 00:00:00 2001 From: Eluda <111eluda111@gmail.com> Date: Sat, 5 Nov 2022 21:55:54 +0100 Subject: [PATCH] Build a menu section. --- src/bot.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/bot.ts b/src/bot.ts index 38766b95..c60410b7 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -128,6 +128,17 @@ bot.command("about", (ctx) => ) ); +// Suggest commands in the menu +bot.api.setMyCommands([ + { command: "start", description: "Start the bot" }, + { command: "yo", description: "Be greeted by the bot" }, + { command: "about", description: "Learn more about the bot" }, + { + command: "effect", + description: "Apply text effects on the text. (usage: /effect [text])", + }, +]); + // Handle all other messages bot.on("message", (ctx) => ctx.reply("Got another message!"));