17 lines
465 B
JavaScript
17 lines
465 B
JavaScript
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"];
|