forked from embee/woomy
		
	re-enabled neko and nekogif
This commit is contained in:
		
							parent
							
								
									f8d9ec1e2f
								
							
						
					
					
						commit
						ab59d90bda
					
				
					 2 changed files with 18 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -1,21 +1,19 @@
 | 
			
		|||
const API = require('nekos.life');
 | 
			
		||||
const {sfw} = new API();
 | 
			
		||||
exports.run = async (client, message) => {
 | 
			
		||||
const fetch = require("node-fetch")
 | 
			
		||||
exports.run = async (client, message, args) => {
 | 
			
		||||
  message.channel.startTyping();
 | 
			
		||||
  try{
 | 
			
		||||
    sfw.neko().then((json) => {
 | 
			
		||||
      message.channel.send(json.url);
 | 
			
		||||
    fetch(`https://purrbot.site/api/img/sfw/neko/img/`)
 | 
			
		||||
      .then(res => res.json())
 | 
			
		||||
      .then(json => message.channel.send(json.link));
 | 
			
		||||
      message.channel.stopTyping();
 | 
			
		||||
    });
 | 
			
		||||
  } catch(err) {
 | 
			
		||||
    client.logger.error("neko.js: " + err);
 | 
			
		||||
    message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`)
 | 
			
		||||
    message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
 | 
			
		||||
    message.channel.stopTyping();
 | 
			
		||||
  };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.conf = {
 | 
			
		||||
  enabled: false, 
 | 
			
		||||
  enabled: true, 
 | 
			
		||||
  guildOnly: false,
 | 
			
		||||
  aliases: ["catgirl"],
 | 
			
		||||
  permLevel: "User",
 | 
			
		||||
| 
						 | 
				
			
			@ -25,6 +23,6 @@ exports.conf = {
 | 
			
		|||
exports.help = {
 | 
			
		||||
  name: "neko",
 | 
			
		||||
  category: "Image",
 | 
			
		||||
  description: "Sends you pictures of catgirls.",
 | 
			
		||||
  description: "Sends you cute wholesome pictures of catgirls.",
 | 
			
		||||
  usage: "neko"
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,15 +1,13 @@
 | 
			
		|||
const API = require('nekos.life');
 | 
			
		||||
const {sfw} = new API();
 | 
			
		||||
exports.run = async (client, message) => {
 | 
			
		||||
const fetch = require("node-fetch")
 | 
			
		||||
exports.run = async (client, message, args) => {
 | 
			
		||||
  message.channel.startTyping();
 | 
			
		||||
  try{
 | 
			
		||||
    sfw.nekoGif().then((json) => {
 | 
			
		||||
      message.channel.send(json.url);
 | 
			
		||||
    fetch(`https://purrbot.site/api/img/sfw/neko/gif/`)
 | 
			
		||||
      .then(res => res.json())
 | 
			
		||||
      .then(json => message.channel.send(json.link));
 | 
			
		||||
      message.channel.stopTyping();
 | 
			
		||||
    });
 | 
			
		||||
  } catch(err) {
 | 
			
		||||
    client.logger.error("nekogif.js: " + err);
 | 
			
		||||
    message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`)
 | 
			
		||||
    message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`);
 | 
			
		||||
    message.channel.stopTyping();
 | 
			
		||||
  };
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue