diff options
| author | jtsshieh <jtsshieh@outlook.com> | 2018-02-24 20:19:29 -0500 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2018-02-24 20:19:29 -0500 |
| commit | 339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff (patch) | |
| tree | f65c2891131f0519554620b69f633cd463b8de48 /src/commands/changelog.js | |
| parent | 7842d67fb29855295be0c5b56bf25647227c5e1b (diff) | |
| download | AleeBot-339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff.tar.gz AleeBot-339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff.tar.bz2 AleeBot-339108b2e4815ffeee9cf6e8940cfb7e12bbf5ff.zip | |
New command handler. DMme if there are any errors and what the error is. (#16)
Diffstat (limited to 'src/commands/changelog.js')
| -rw-r--r-- | src/commands/changelog.js | 36 |
1 files changed, 22 insertions, 14 deletions
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',
+};
|
