mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-29 00:24:58 +05:00
30 lines
No EOL
703 B
JavaScript
30 lines
No EOL
703 B
JavaScript
const Command = require("../../base/Command");
|
|
|
|
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.reply({
|
|
content: `<https://letmegooglethat.com/?q=${encodedQuestion}>`
|
|
});
|
|
message.delete().catch(() => {});
|
|
}
|
|
}
|
|
|
|
module.exports = Lmg; |