forked from embee/woomy
		
	totally didnt steal this fron nyandroid
This commit is contained in:
		
							parent
							
								
									90e9793377
								
							
						
					
					
						commit
						61e6951833
					
				
					 2 changed files with 32 additions and 1 deletions
				
			
		
							
								
								
									
										31
									
								
								src/commands/lmgtfy.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								src/commands/lmgtfy.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,31 @@
 | 
			
		|||
const identities = require ("../../resources/other/identities.json");
 | 
			
		||||
exports.run = async (client, message, args) => {
 | 
			
		||||
  if (!args[0]) {
 | 
			
		||||
    return message.channel.send("Missing arguments, please provide me with a query!")
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const query = args.join("+")
 | 
			
		||||
 | 
			
		||||
  let link = ("https://lmgtfy.com/?q=" + query)
 | 
			
		||||
 | 
			
		||||
  if (message.flags.includes('d')) {
 | 
			
		||||
    link = "https://lmgtfy.com/?q=" + query + "&pp=1&s=d"
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  message.channel.send(link)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
exports.conf = {
 | 
			
		||||
  enabled: true,
 | 
			
		||||
  guildOnly: false,
 | 
			
		||||
  aliases: [],
 | 
			
		||||
  permLevel: "User",
 | 
			
		||||
  requiredPerms: []
 | 
			
		||||
}; 
 | 
			
		||||
 | 
			
		||||
exports.help = {
 | 
			
		||||
  name: "lmgtfy",
 | 
			
		||||
  category: "Fun",
 | 
			
		||||
  description: "For when you need to remind someone search engines exist..",
 | 
			
		||||
  usage: "lmgtfy <question>"
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{
 | 
			
		||||
    "number": "1.3.7",
 | 
			
		||||
    "number": "1.3.8",
 | 
			
		||||
    "changelog": "**1.3.0 Changelog:**\n> • Music module has been rewritten for better stability and lots more features\n> • Force disconnecting Woomy from a voice channel no longer breaks music\n> • Music should (hopefully) break less in general\n> • Existing music commands have been rewritten\n> • Added the following new commands: fixmusic, movehere, movesong, playnext, shuffle, songinfo, volume\n> • Updated ship command\n**Notes:**\n> • This will be the final major update to Woomy V1, as we are shifting our focus to Woomy V2, which is a complete rewrite."
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue