JaBa/commands/Fun/lmg.js

28 lines
700 B
JavaScript
Raw Normal View History

2021-12-10 21:39:54 +05:00
const Command = require("../../base/Command.js");
class Lmg extends Command {
constructor (client) {
super(client, {
name: "lmg",
dirname: __dirname,
enabled: true,
guildOnly: false,
aliases: [ "lmgtfy" ],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 1000
});
}
async run (message, args) {
const question = args.join(" ");
if (!question) return message.error("fun/lmg:MISSING");
const encodedQuestion = question.replace(/[' '_]/g, "+");
await message.channel.send(`https://google.gik-team.com/?q=${encodedQuestion}`);
2021-12-10 21:39:54 +05:00
message.delete().catch(() => {});
}
};
module.exports = Lmg;