woomy/src/commands/kitsune.js

29 lines
734 B
JavaScript
Raw Normal View History

2020-06-17 08:13:26 +00:00
const fetch = require("node-fetch")
exports.run = async (client, message, args) => {
message.channel.startTyping();
try{
fetch(`https://purrbot.site/api/img/sfw/kitsune/img/`)
.then(res => res.json())
.then(json => message.channel.send(json.link));
message.channel.stopTyping();
} catch(err) {
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
message.channel.stopTyping();
};
};
exports.conf = {
2020-06-28 22:18:16 +00:00
enabled: false,
2020-06-17 08:13:26 +00:00
guildOnly: false,
aliases: ['foxgirl'],
permLevel: "User",
requiredPerms: ["EMBED_LINKS"]
};
exports.help = {
name: "kitsune",
category: "Image",
description: "Sends you cute wholesome pictures of foxgirls.",
usage: "kitsune"
};