forked from embee/woomy
		
	renamed foxgirl kitsune
This commit is contained in:
		
							parent
							
								
									ab59d90bda
								
							
						
					
					
						commit
						514d1d15bc
					
				
					 2 changed files with 28 additions and 30 deletions
				
			
		| 
						 | 
					@ -1,30 +0,0 @@
 | 
				
			||||||
const API = require('nekos.life');
 | 
					 | 
				
			||||||
const {sfw} = new API();
 | 
					 | 
				
			||||||
exports.run = async (client, message) => {
 | 
					 | 
				
			||||||
  message.channel.startTyping();
 | 
					 | 
				
			||||||
  try {
 | 
					 | 
				
			||||||
    sfw.foxGirl().then((json) => {
 | 
					 | 
				
			||||||
      message.channel.send(json.url)
 | 
					 | 
				
			||||||
      message.channel.stopTyping();
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
  } catch (err) {
 | 
					 | 
				
			||||||
    client.logger.error("foxgirl.js: " + err);
 | 
					 | 
				
			||||||
    message.channel.send(`<:error:466995152976871434> An error has occurred: ${err}`)
 | 
					 | 
				
			||||||
    message.channel.stopTyping();
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
exports.conf = {
 | 
					 | 
				
			||||||
  enabled: false, 
 | 
					 | 
				
			||||||
  guildOnly: false,
 | 
					 | 
				
			||||||
  aliases: [],
 | 
					 | 
				
			||||||
  permLevel: "User",
 | 
					 | 
				
			||||||
  requiredPerms: ["EMBED_LINKS"]
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
exports.help = {
 | 
					 | 
				
			||||||
  name: "foxgirl",
 | 
					 | 
				
			||||||
  category: "Image",
 | 
					 | 
				
			||||||
  description: "Sends you pictures of fox girls.",
 | 
					 | 
				
			||||||
  usage: "foxgirl"
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
							
								
								
									
										28
									
								
								src/commands/kitsune.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								src/commands/kitsune.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,28 @@
 | 
				
			||||||
 | 
					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 = {
 | 
				
			||||||
 | 
					  enabled: true, 
 | 
				
			||||||
 | 
					  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"
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue