make shorter help menu

This commit is contained in:
Santiago Forero 2021-09-16 15:36:39 -05:00
parent 4a55c2ebe3
commit e1d2d00791
1 changed files with 5 additions and 5 deletions

View File

@ -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/')
},
};