LMGTFY text-edit

This commit is contained in:
Daniel Odendahl Jr
2018-01-05 23:50:43 +00:00
parent 4b95418b54
commit 4c47d6bdef
+26
View File
@@ -0,0 +1,26 @@
const { Command } = require('discord.js-commando');
module.exports = class LMGTFYCommand extends Command {
constructor(client) {
super(client, {
name: 'lmgtfy',
aliases: ['let-me-google-that-for-you', 'google'],
group: 'text-edit',
memberName: 'lmgtfy',
description: 'Creates a LMGTFY link with the query you provide.',
args: [
{
key: 'query',
prompt: 'What would you like the link to search for?',
type: 'string',
max: 1950,
parse: query => encodeURIComponent(query)
}
]
});
}
run(msg, { query }) {
return msg.say(`http://lmgtfy.com/?iie=1&q=${query}`);
}
};