diff --git a/src/commands/lmgtfy.js b/src/commands/lmgtfy.js new file mode 100644 index 0000000..ffd031c --- /dev/null +++ b/src/commands/lmgtfy.js @@ -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 " +}; diff --git a/version.json b/version.json index 6f202d1..7a1a175 100644 --- a/version.json +++ b/version.json @@ -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." }