2019-09-13 20:02:41 +00:00
|
|
|
const fetch = require("node-fetch");
|
|
|
|
|
|
|
|
exports.run = async (message) => {
|
|
|
|
message.channel.sendTyping();
|
|
|
|
const imageData = await fetch("https://dog.ceo/api/breeds/image/random");
|
|
|
|
const json = await imageData.json();
|
|
|
|
return message.channel.createMessage({
|
|
|
|
embed: {
|
|
|
|
color: 16711680,
|
|
|
|
image: {
|
|
|
|
url: json.message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.aliases = ["doggos", "doggo", "pupper", "puppers", "dogs", "puppy", "puppies", "pups", "pup"];
|
2019-12-02 20:47:22 +00:00
|
|
|
exports.category = 4;
|
|
|
|
exports.help = "Gets a random dog picture";
|