discord_bot/commands/fun/fact.js

26 lines
521 B
JavaScript
Raw Normal View History

2024-02-07 14:45:22 +00:00
const client = require('nekos.life');
const {Discord,richEmbed} = require('discord.js')
const neko = new client();
module.exports = {
name: "fact",
category: "fun",
description: "sendet eine coole Tatsache",
usage: "[command]",
run: async (client, message, args) => {
//command
async function work() {
let owo = (await neko.sfw.fact());
message.channel.send(owo.fact).catch(error => {
console.error(error);
});
message.delete();
}
work();
}
};