2022-01-13 00:56:24 +05:00
|
|
|
const Command = require("../../base/Command");
|
2022-01-04 02:18:28 +05:00
|
|
|
|
|
|
|
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, "+");
|
2022-02-25 00:56:32 +05:00
|
|
|
await message.reply({
|
2022-03-27 23:59:28 +05:00
|
|
|
content: `<https://letmegooglethat.com/?q=${encodedQuestion}>`
|
2022-01-05 00:24:57 +05:00
|
|
|
});
|
2022-01-04 02:18:28 +05:00
|
|
|
message.delete().catch(() => {});
|
|
|
|
}
|
2022-01-13 00:26:23 +05:00
|
|
|
}
|
2022-01-04 02:18:28 +05:00
|
|
|
|
|
|
|
module.exports = Lmg;
|