From e1d2d00791ab692e866ca5b6628d69da68a9abe9 Mon Sep 17 00:00:00 2001 From: Santiago Forero Date: Thu, 16 Sep 2021 15:36:39 -0500 Subject: [PATCH] make shorter help menu --- commands/help.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/help.js b/commands/help.js index cad9d7b..85d5cb2 100644 --- a/commands/help.js +++ b/commands/help.js @@ -2,12 +2,12 @@ module.exports = { name: 'help', description: 'Get info and help about this bot.', execute(event, args, bot) { - bot.say(event.target, 'Hi, I\'m Cactus, you can live the life of a cactus and grow to become the tallest! My maintainer is forero, my prefix is \'=\' and my commands are: ') - + text = "" bot.commands.forEach((value, key, map) => { - bot.say(event.target, value.name + ": " + value.description) + text += value.name + ": " + value.description + ' | ' }) - - bot.say(event.target, 'Source: https://tildegit.org/forero/cactus-irc/') + + bot.say(event.target, 'Hi, I\'m Cactus, you can grow a cactus to become the tallest! My maintainer is forero, my prefix is \'=\' and my commands are:') + bot.say(event.target, text + 'Source: https://tildegit.org/forero/cactus-irc/') }, }; \ No newline at end of file