diff --git a/commands/bunny.js b/commands/bunny.js
index 9eb31b3..e4167b8 100644
--- a/commands/bunny.js
+++ b/commands/bunny.js
@@ -1,25 +1,33 @@
+// Required components
const { command } = require('vylbot-core');
const { MessageEmbed } = require('discord.js');
const randomPuppy = require('random-puppy');
+// Command variables
const embedColor = "0x3050ba";
+// Command class
class bunny extends command {
constructor() {
+ // Set run method, description, and category
super("bunny");
super.description = "Gives you a random bunny";
super.category = "Fun";
}
+ // Run method
bunny(context) {
+ // Get a random post from r/Rabbits
randomPuppy('Rabbits').then(image => {
+ // Create an embed containing the random image
let embed = new MessageEmbed()
.setColor(embedColor)
.setImage(image);
+ // Send the embed
context.message.channel.send(embed);
});
}
}
-module.exports = bunny;
\ No newline at end of file
+module.exports = bunny;
diff --git a/commands/poll.js b/commands/poll.js
index 649f6d1..3acd363 100644
--- a/commands/poll.js
+++ b/commands/poll.js
@@ -1,25 +1,37 @@
+// Required components
const { command } = require('vylbot-core');
const { MessageEmbed } = require('discord.js');
+// Command variables
const embedColor = "0x3050ba";
+// Command class
class poll extends command {
constructor() {
+ // Set the command's run method, description, category, and example usage
super("poll");
super.description = "Generates a poll with reaction numbers";
super.category = "General";
super.usage = "
;