EcoBot/commands/capybara.js
2021-11-23 00:37:00 +01:00

10 lines
No EOL
308 B
JavaScript

module.exports = {
api: {
name: "capybara",
description: "Sends a random image of a capybara"
},
run: (int, client, index) => {
var dir = require("fs").readdirSync("capybara");
int.reply({content: "Capybara", files: [__dirname + "/../capybara/" + dir[Math.floor(Math.random()*dir.length)]]});
}
}