woomy/src/commands/neko.js

29 lines
724 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/img/`)
.then(res => res.json())
.then(json => message.channel.send(json.link));
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-17 08:12:41 +00:00
enabled: true,
2020-03-26 04:31:32 +00:00
guildOnly: false,
aliases: ["catgirl"],
permLevel: "User",
requiredPerms: ["EMBED_LINKS"]
};
exports.help = {
name: "neko",
category: "Image",
2020-06-17 08:12:41 +00:00
description: "Sends you cute wholesome pictures of catgirls.",
2020-03-26 04:31:32 +00:00
usage: "neko"
2020-04-21 07:33:18 +00:00
};