From 339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff Mon Sep 17 00:00:00 2001 From: jtsshieh Date: Sat, 24 Feb 2018 20:19:29 -0500 Subject: New command handler. DMme if there are any errors and what the error is. (#16) --- src/commands/changelog.js | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'src/commands/changelog.js') diff --git a/src/commands/changelog.js b/src/commands/changelog.js index a03c064..07ab557 100644 --- a/src/commands/changelog.js +++ b/src/commands/changelog.js @@ -1,16 +1,24 @@ -module.exports.run = async (client, message, args, abVersion) => { - var embed = new Discord.RichEmbed() - .setAuthor('AleeBot ' + abVersion + `Changelog`, "https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048") - .setDescription("What's new in AleeBot?") - .addField("+ Rewritten command handler", true) - .addField("+ New uptime command (Thanks to Rain)", true) - .addField("? Some commands are the same from 1.x", true) - .setFooter("AleeCorp Copyright 2017") - .setColor("#1fd619") - message.channel.sendEmbed(embed); +module.exports.run = async (client, message) => { + const Discord = require('discord.js'); + const embed = new Discord.RichEmbed() + .setAuthor('AleeBot ' + '2.0.0 beta' + 'Changelog', 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048') + .setDescription('What\'s new in AleeBot?') + .addField('+ Rewritten command handler', true) + .addField('+ New uptime command (Thanks to Rain)', true) + .addField('? Some commands are the same from 1.x', true) + .setFooter('AleeCorp Copyright 2017') + .setColor('#1fd619'); + message.channel.sendEmbed(embed); -} +}; -module.exports.config = { - command: "changelog" -} \ No newline at end of file +exports.conf = { + aliases: [], + guildOnly: false, +}; +exports.help = { + name: 'changelog', + description: 'What\'s new', + usage: 'changelog', + category: '- General Commands', +}; -- cgit v1.2.3