mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 06:34:58 +05:00
37 lines
No EOL
1,020 B
JavaScript
37 lines
No EOL
1,020 B
JavaScript
const Command = require("../../base/Command.js"),
|
|
Discord = require("discord.js");
|
|
|
|
class Someone extends Command {
|
|
|
|
constructor (client) {
|
|
super(client, {
|
|
name: "someone",
|
|
dirname: __dirname,
|
|
enabled: true,
|
|
guildOnly: true,
|
|
aliases: [ "somebody", "something" ],
|
|
memberPermissions: [],
|
|
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
|
|
nsfw: false,
|
|
ownerOnly: false,
|
|
cooldown: 500
|
|
});
|
|
}
|
|
|
|
async run (message, args, data) {
|
|
|
|
const member = message.guild.members.cache.random(1)[0];
|
|
|
|
const embed = new Discord.MessageEmbed()
|
|
.addField(message.translate("common:USERNAME"), member.user.username, true)
|
|
.addField(message.translate("common:DISCRIMINATOR"), member.user.discriminator, true)
|
|
.addField(message.translate("common:ID"), member.user.id, true)
|
|
.setThumbnail(member.user.displayAvatarURL({ size: 512, dynamic: true, format: 'png' }))
|
|
.setColor(data.config.embed.color);
|
|
message.channel.send(embed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Someone; |