Added pride and stuff
This commit is contained in:
parent
1b013581de
commit
956f4132c7
3 changed files with 60 additions and 6 deletions
|
@ -60,13 +60,13 @@ exports.run = (client, message, args, level, data) => {
|
|||
return message.channel.send('Command/alias doesn\'t exist')
|
||||
}
|
||||
|
||||
let desc = ''
|
||||
let aliases
|
||||
|
||||
if (cmd.conf.aliases.length > 0) {
|
||||
desc += `*(Aliases: ${cmd.conf.aliases.join(', ')})*\n\n`
|
||||
aliases = '`' + cmd.conf.aliases.join('`, `') + '`'
|
||||
}
|
||||
|
||||
desc += cmd.help.description + `\n\n**You need the \`${cmd.conf.permLevel}\` rank to run this command! This command has a cooldown of \`${cmd.conf.cooldown / 1000}\` seconds per user.**`
|
||||
const desc = cmd.help.description + `\n\n**You need the \`${cmd.conf.permLevel}\` rank to run this command! This command has a cooldown of \`${cmd.conf.cooldown / 1000}\` seconds per user.**`
|
||||
|
||||
embed.setTitle(cmd.help.category.toLowerCase() + ':' + cmd.help.name)
|
||||
embed.setDescription(desc)
|
||||
|
@ -74,6 +74,9 @@ exports.run = (client, message, args, level, data) => {
|
|||
if (cmd.help.examples.length > 0) {
|
||||
embed.addField('**Examples**', cmd.help.examples)
|
||||
}
|
||||
if (aliases) {
|
||||
embed.addField('**Aliases**', aliases)
|
||||
}
|
||||
embed.setFooter('< > = optional, [ ] = required. Don\'t include the brackets in the command itself!')
|
||||
message.channel.send(embed)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue