EcoBot/commands/capybara.js

13 lines
No EOL
367 B
JavaScript

module.exports = {
api: {
name: "capybara",
description: "Sends a random image of a capybara"
},
run: (int, client, index) => {
var axios = require("axios").default;
axios("http://theinteger.org:4000/random").then(res => {
console.log(res.data.url);
int.reply({embeds: [{title: "Capybara", color: "#00FFFF", image: {url: res.data.url}}]});
});
}
}