Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const aphacodesl = ['None', 'Low', 'Medium', 'Hard', 'Extreme'];
- const aphacodesr = {
- 'brazil': ':earth_americas: `Brazil`',
- 'eu-central': ':earth_africa: `Central Europe`',
- 'singapore': ':earth_asia: `Singapore`',
- 'us-central': ':earth_americas: `U.S. Central`',
- 'sydney': ':earth_asia: `Sydney`',
- 'us-east': ' :earth_americas: `U.S. East`',
- 'us-south': ':earth_americas: `U.S. South`',
- 'us-west': ':earth_americas: `U.S. West`',
- 'eu-west': ':earth_africa: `Western Europe`',
- 'vip-us-east': ':star: `VIP U.S. East`',
- 'london': ':earth_africa: `London`',
- 'amsterdam': ':earth_asia: `Amsterdam`',
- 'hongkong': ':earth_asia: `Hong Kong`',
- 'russia': ':earth_asia: `Russia`'
- };
- client.on('message', async aphacodes => {
- let aphacodes1;
- if (aphacodes.guild.emojis.size === 0) {
- aphacodes1 = 'None';
- } else {
- aphacodes }
- if (aphacodes.content.startsWith(prefix + "server")) {
- const najzx = new Discord.RichEmbed()
- .setThumbnail(aphacodes.guild.iconURL)
- .setAuthor(aphacodes.guild.name, aphacodes.guild.iconURL)
- .setTitle('Server info:')
- .setDescription(`
- • **Server name** : \`${aphacodes.guild.name}\`
- • **CreatedAt** : \`${moment(aphacodes.guild.createdAt).format('D/M/YYYY h:mm a')}\`
- • **You joinedAt** : \`${moment(aphacodes.member.joinedAt).format('D/M/YYYY h:mm a')}\`
- • **Total members** : \`${aphacodes.guild.memberCount}\`
- • **Last member **: ${Array.from(aphacodes.channel.guild.members.values()).sort((a, b) => b.joinedAt - a.joinedAt).map(m => `<@!${m.id}>`)
- .splice(0, 1)}
- • **Server Owner** : \`${aphacodes.guild.owner.user.username}\`
- • **Rooms** : \`${aphacodes.guild.channels.filter(m => m.type === 'text').size} Text | ${aphacodes.guild.channels.filter(m => m.type === 'voice').size} Voice\`
- • **Categorys** : \`${aphacodes.guild.channels.filter(m => m.type === 'category').size}\`
- • **Roles** : \`${aphacodes.guild.roles.size}\`
- • **Region** : ${aphacodesr[aphacodes.guild.region]}
- • **guildID** : \`${aphacodes.guild.id}\`
- • **Verification Level** : \`${aphacodesl[aphacodes.guild.verificationLevel]}\`
- • **Emojis** : \`${aphacodes1}\``)
- .setFooter(aphacodes.author.username, aphacodes.author.avatarURL)
- .setTimestamp()
- .setColor('#307FFF');
- await aphacodes.channel.send(najzx);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement