diff --git a/commands/doggo.js b/commands/doggo.js new file mode 100644 index 0000000..2f6eed9 --- /dev/null +++ b/commands/doggo.js @@ -0,0 +1,28 @@ +const Discord = require("discord.js"); +const superagent = require ("superagent"); + +module.exports.run = async (client, message) => { + + const {body} = await superagent + .get ('https://random.dog/woof.json'); + + const dogembed = new Discord.RichEmbed() + .setColor("#f48c42") + .setTitle(":dog: Woof!") + .setImage(body.url); + + message.channel.send(dogembed); +}; + exports.conf = { + enabled: true, + guildOnly: false, + aliases: [], + permLevel: "Standard User" + }; + + exports.help = { + name: "doggo", + category: "Fun", + description: "Provides a random picture of a dog.", + usage: "doggo" + };