2021-12-10 21:39:54 +05:00
|
|
|
const Command = require("../../base/Command.js");
|
|
|
|
|
|
|
|
class Lmg extends Command {
|
2021-12-26 19:29:37 +05:00
|
|
|
constructor(client) {
|
2021-12-10 21:39:54 +05:00
|
|
|
super(client, {
|
|
|
|
name: "lmg",
|
|
|
|
dirname: __dirname,
|
|
|
|
enabled: true,
|
|
|
|
guildOnly: false,
|
2021-12-26 19:29:37 +05:00
|
|
|
aliases: ["lmgtfy"],
|
2021-12-10 21:39:54 +05:00
|
|
|
memberPermissions: [],
|
2021-12-26 19:29:37 +05:00
|
|
|
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS"],
|
2021-12-10 21:39:54 +05:00
|
|
|
nsfw: false,
|
|
|
|
ownerOnly: false,
|
|
|
|
cooldown: 1000
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2021-12-26 19:29:37 +05:00
|
|
|
async run(message, args) {
|
2021-12-10 21:39:54 +05:00
|
|
|
const question = args.join(" ");
|
|
|
|
if (!question) return message.error("fun/lmg:MISSING");
|
|
|
|
const encodedQuestion = question.replace(/[' '_]/g, "+");
|
2021-12-22 17:32:50 +05:00
|
|
|
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;
|