make shorter help menu
This commit is contained in:
parent
4a55c2ebe3
commit
e1d2d00791
|
@ -2,12 +2,12 @@ module.exports = {
|
||||||
name: 'help',
|
name: 'help',
|
||||||
description: 'Get info and help about this bot.',
|
description: 'Get info and help about this bot.',
|
||||||
execute(event, args, 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.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/')
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Reference in New Issue