SHARE
TWEET

Alpha Codes Server info

a guest Apr 24th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         const aphacodesl = ['None', 'Low', 'Medium', 'Hard', 'Extreme'];
  2.         const aphacodesr = {
  3.             'brazil': ':earth_americas: `Brazil`',
  4.             'eu-central': ':earth_africa: `Central Europe`',
  5.             'singapore': ':earth_asia: `Singapore`',
  6.             'us-central': ':earth_americas: `U.S. Central`',
  7.             'sydney': ':earth_asia: `Sydney`',
  8.             'us-east': ' :earth_americas: `U.S. East`',
  9.             'us-south': ':earth_americas: `U.S. South`',
  10.             'us-west': ':earth_americas: `U.S. West`',
  11.             'eu-west': ':earth_africa: `Western Europe`',
  12.             'vip-us-east': ':star: `VIP U.S. East`',
  13.             'london': ':earth_africa: `London`',
  14.             'amsterdam': ':earth_asia: `Amsterdam`',
  15.             'hongkong': ':earth_asia: `Hong Kong`',
  16.             'russia': ':earth_asia: `Russia`'
  17.         };
  18.     client.on('message', async aphacodes => {
  19.         let aphacodes1;
  20.         if (aphacodes.guild.emojis.size === 0) {
  21.             aphacodes1 = 'None';
  22.         } else {
  23. aphacodes       }
  24.     if (aphacodes.content.startsWith(prefix + "server")) {
  25.         const najzx = new Discord.RichEmbed()
  26.             .setThumbnail(aphacodes.guild.iconURL)
  27.             .setAuthor(aphacodes.guild.name, aphacodes.guild.iconURL)
  28.             .setTitle('Server info:')
  29.             .setDescription(`
  30. **Server name** : \`${aphacodes.guild.name}\`
  31. **CreatedAt** : \`${moment(aphacodes.guild.createdAt).format('D/M/YYYY h:mm a')}\`
  32. **You joinedAt** : \`${moment(aphacodes.member.joinedAt).format('D/M/YYYY h:mm a')}\`
  33. **Total members** : \`${aphacodes.guild.memberCount}\`
  34. **Last member **: ${Array.from(aphacodes.channel.guild.members.values()).sort((a, b) => b.joinedAt - a.joinedAt).map(m => `<@!${m.id}>`)
  35.         .splice(0, 1)}
  36. **Server Owner** : \`${aphacodes.guild.owner.user.username}\`
  37. **Rooms** : \`${aphacodes.guild.channels.filter(m => m.type === 'text').size} Text | ${aphacodes.guild.channels.filter(m => m.type === 'voice').size} Voice\`
  38. **Categorys** : \`${aphacodes.guild.channels.filter(m => m.type === 'category').size}\`
  39. **Roles** : \`${aphacodes.guild.roles.size}\`
  40. **Region** : ${aphacodesr[aphacodes.guild.region]}
  41. **guildID** : \`${aphacodes.guild.id}\`
  42. **Verification Level** : \`${aphacodesl[aphacodes.guild.verificationLevel]}\`
  43. **Emojis** : \`${aphacodes1}\``)
  44.             .setFooter(aphacodes.author.username, aphacodes.author.avatarURL)
  45.             .setTimestamp()
  46.             .setColor('#307FFF');
  47.         await aphacodes.channel.send(najzx);
  48.     }  
  49.        });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top