aboutsummaryrefslogtreecommitdiff
path: root/commands/help.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-02-24 14:59:35 -0500
committerUnknown <jtsshieh@outlook.com>2018-02-24 14:59:35 -0500
commitc484753ee15dbe2a5ce9c6297f22fabb52ce3b7e (patch)
tree93fd74f30abbd3c8206321b9d9c20b2571ed84ca /commands/help.js
parent3d36bcf0591f2694c3a2472a157ecca0de8d35fc (diff)
downloadPokeBot-c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e.tar.gz
PokeBot-c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e.tar.bz2
PokeBot-c484753ee15dbe2a5ce9c6297f22fabb52ce3b7e.zip
New Command system
Diffstat (limited to 'commands/help.js')
-rw-r--r--commands/help.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/commands/help.js b/commands/help.js
deleted file mode 100644
index 6e97fcd..0000000
--- a/commands/help.js
+++ /dev/null
@@ -1,40 +0,0 @@
-exports.run = (bot, msg) => {
- const { RichEmbed } = require('discord.js');
- const embed = new RichEmbed();
- embed
- .setColor (0x00ae86)
- .setDescription('Notice: When using a command do not include "<" and ">".\n(Example: p:suggest Test)')
- .setFooter('PokeBot Beta');
-
- const categories = [];
- const commands = Array.from(bot.commands.keys());
-
- commands.forEach(function(x) {
- if (!categories.includes(bot.commands.get(x).help.category)) {
- categories.push(bot.commands.get(x).help.category);
- }
- });
-
- categories.forEach(function(x) {
- let cat = '';
- commands.forEach(function(command) {
- if (bot.commands.get(command).help.category == x) {
- const usage = bot.commands.get(command).help.usage ? `*${bot.commands.get(command).help.usage}* ` : '';
- cat += `**p:${command}** ${usage}| ${bot.commands.get(command).help.description} \n`;
- }
- });
- embed.addField(`${x} |`, cat);
- });
- msg.channel.send({ embed });
-};
-
-exports.conf = {
- aliases: [],
- guildOnly: true,
-};
-
-exports.help = {
- name: 'help',
- description: 'Displays this help message.',
- category: 'Getting Started',
-};