EcoBot/commands/fox.js

13 lines
351 B
JavaScript
Raw Permalink Normal View History

2021-11-22 23:37:00 +00:00
module.exports = {
api: {
name: "fox",
description: "Sends a random image of a fox"
},
run: (int, client, index) => {
const axios = require("axios").default;
axios("https://randomfox.ca/floof/").then(res => {
console.log(res.data.image);
int.reply({embeds: [{title: "Fox", image: {url: res.data.image}, color: 0xFFA500}]});
});
}
}