diff options
| author | Justin <jtsshieh@outlook.com> | 2019-11-02 11:02:19 -0400 |
|---|---|---|
| committer | Justin <jtsshieh@outlook.com> | 2019-11-02 11:02:19 -0400 |
| commit | 7031fa12ba79281edc49df972311c13ad0e8fa53 (patch) | |
| tree | 60410a33fe45add85a9dc962c975be478f3f8cff /commands/Getting Started/help.js | |
| parent | 106530d5dc53166632a6a0ecc8930eb2b1ed4bfd (diff) | |
| download | PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.gz PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.tar.bz2 PokeBot-7031fa12ba79281edc49df972311c13ad0e8fa53.zip | |
es-lint settings added + linted all files
Diffstat (limited to 'commands/Getting Started/help.js')
| -rw-r--r-- | commands/Getting Started/help.js | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/commands/Getting Started/help.js b/commands/Getting Started/help.js index 03dc3de..e1325d1 100644 --- a/commands/Getting Started/help.js +++ b/commands/Getting Started/help.js @@ -8,12 +8,12 @@ * *************************************/ exports.run = (bot, msg, args) => { - const { RichEmbed } = require('discord.js'); + const {RichEmbed} = require('discord.js'); if (!args[0]) { - const settings = require("../../assets/settings.json"); + const settings = require('../../assets/settings.json'); const embed = new RichEmbed(); embed - .setColor (0x36393e) + .setColor(0x36393e) .setTitle('PokeBot Command List') .setDescription(`PokeBot prefix is \`${settings.prefix}\`.`) .setFooter(`PokeBot v1.0 is on ${bot.guilds.size} servers.`); @@ -25,23 +25,22 @@ exports.run = (bot, msg, args) => { commands.forEach(cmd => { const command = bot.commands.get(x).get(cmd); if (command.checkPermission != null) { - if (command.checkPermission(bot, msg.member) == true) - { + if (command.checkPermission(bot, msg.member) == true) { cat += `**${command.help.name}**\n`; } - } - else { + } else { cat += `**${command.help.name}**\n`; } }); - if (cat != '') embed.addField(x, cat, true); + if (cat != '') { + embed.addField(x, cat, true); + } }); - msg.channel.send({ embed }); - } - else { + msg.channel.send({embed}); + } else { const embed = new RichEmbed(); embed - .setColor (0x00ae86) + .setColor(0x00ae86) .setDescription('Notice: When using a command do not include "<" and ">".\n(Example: p:suggest Test)') .setFooter('PokeBot v1.0'); @@ -56,7 +55,7 @@ exports.run = (bot, msg, args) => { embed.addField('Description', command.help.description, true); embed.addField('Usage', usage, true); embed.addField('Aliases', command.conf.aliases, true); - msg.channel.send({ embed }); + msg.channel.send({embed}); } }); }); @@ -65,10 +64,10 @@ exports.run = (bot, msg, args) => { exports.conf = { aliases: [], - guildOnly: true, + guildOnly: true }; exports.help = { name: 'help', - description: 'Displays this help message.', + description: 'Displays this help message.' }; |
