Added some stuff, changed how usererrs are called
This commit is contained in:
parent
9fd2c873ca
commit
b36a746bb4
8 changed files with 149 additions and 21 deletions
|
@ -34,14 +34,18 @@ exports.run = (client, message, args, level, data) => {
|
|||
|
||||
if (!args[0]) {
|
||||
let uPrefix = '`' + data.user.prefix + '`'
|
||||
let gPrefix = '`' + data.guild.prefix + '`'
|
||||
let gPrefix = ''
|
||||
|
||||
if (client.config.defaultPrefix === data.user.prefix) {
|
||||
uPrefix = 'None set, use: `~myprefix'
|
||||
}
|
||||
|
||||
if (client.config.defaultPrefix === data.guild.prefix) {
|
||||
gPrefix = 'None set, use: `~prefix`'
|
||||
if (message.guild) {
|
||||
gPrefix = 'Server Prefix: `' + data.guild.prefix + '`'
|
||||
|
||||
if (client.config.defaultPrefix === data.guild.prefix) {
|
||||
gPrefix = 'Server Prefix: None set, use: `~prefix`'
|
||||
}
|
||||
}
|
||||
|
||||
embed.setTitle('Help & Commands')
|
||||
|
@ -49,7 +53,7 @@ exports.run = (client, message, args, level, data) => {
|
|||
if (client.version.news.length > 0) {
|
||||
embed.addField('**News**', client.version.news)
|
||||
}
|
||||
embed.addField('**Prefixes**', `Default Prefix: \`${client.config.defaultPrefix}\`\nServer Prefix: ${gPrefix}\nUser Prefix: ${uPrefix}`)
|
||||
embed.addField('**Prefixes**', `Default Prefix: \`${client.config.defaultPrefix}\`\nUser Prefix: ${uPrefix}\nServer Prefix: ${gPrefix}`)
|
||||
embed.addField('**Command Syntax**', 'For arguments in commands:\n» Arguments in `[]` brackets are required.\n» Arguments in `<>` brackets are optional.\n» Arguments prefixed with `-` are flags, and are placed at the start of the command (`avatar -jpg mudkipscience`)')
|
||||
embed.addField('**Commands**', `Use \`${message.prefix}help all\` to view all commands, or \`${message.prefix}help <command>\` for more information on a specific command.\n\n[Bot Invite](https://discordapp.com/oauth2/authorize?client_id=${client.user.id}&permissions=2134240503&scope=bot) | [Discord Server](https://discord.gg/HCF8mdv) | [GitHub](https://github.com/mudkipscience/woomy) | [Vote for me!](https://top.gg/bot/435961704145485835/vote)`)
|
||||
|
||||
|
@ -79,7 +83,7 @@ exports.run = (client, message, args, level, data) => {
|
|||
aliases = '`' + cmd.conf.aliases.join('`, `') + '`'
|
||||
}
|
||||
|
||||
embed.setTitle(cmd.help.category.toLowerCase() + ':' + cmd.help.name)
|
||||
embed.setTitle(`${cmd.help.category} -> ${cmd.help.name}`)
|
||||
embed.setDescription(cmd.help.description)
|
||||
embed.addField('**Usage**', cmd.help.usage)
|
||||
if (cmd.help.parameters.length > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue