woomy/src/commands/nekogif.js

32 lines
836 B
JavaScript
Raw Normal View History

2020-06-17 08:12:41 +00:00
const fetch = require("node-fetch")
exports.run = async (client, message, args) => {
2020-03-26 04:31:32 +00:00
message.channel.startTyping();
2020-06-17 08:12:41 +00:00
try{
fetch(`https://purrbot.site/api/img/sfw/neko/gif/`)
.then(res => res.json())
.then(json => message.channel.send(json.link))
.catch(err => {
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
});
2020-03-26 04:31:32 +00:00
message.channel.stopTyping();
2020-06-17 08:12:41 +00:00
} catch(err) {
message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
2020-03-26 04:31:32 +00:00
message.channel.stopTyping();
};
};
exports.conf = {
2020-06-18 10:46:42 +00:00
enabled: false,
2020-03-26 04:31:32 +00:00
guildOnly: false,
aliases: ["catgirlgif"],
permLevel: "User",
requiredPerms: ["EMBED_LINKS"]
};
exports.help = {
name: "nekogif",
category: "Image",
description: "Sends you gifs of catgirls.",
usage: "nekogif"
2020-04-21 07:33:18 +00:00
};