Skip to content

Instantly share code, notes, and snippets.

@YorkAARGH
Created May 17, 2017 15:36
Show Gist options
  • Save YorkAARGH/0f06bf789137f6a9b0dad7b6fb01a262 to your computer and use it in GitHub Desktop.
Save YorkAARGH/0f06bf789137f6a9b0dad7b6fb01a262 to your computer and use it in GitHub Desktop.
const Discord = require('discord.js');
exports.run = (client, message) => {
const embed = new Discord.RichEmbed()
.setAuthor(message.guild.name, message.guild.iconURL)
.setColor(3447003)
.setDescription(`Owner: ${message.guild.owner.user.tag} (${message.guild.owner.id})`)
.addField('Member Count', `${message.guild.memberCount - message.guild.members.filter(m=>m.user.bot).size} (${message.guild.members.filter(m=>m.user.bot).size} bots)`, true)
.addField('AFK Timeout', `${message.guild.afkTimeout / 60} minutes`, true)
.addField('AFK Channel', `${message.guild.afkChannelID === null ? 'No AFK Channel' : client.channels.get(message.guild.afkChannelID).name} (${message.guild.afkChannelID === null ? '' : message.guild.afkChannelID})`, true)
.addField('Location', message.guild.region, true)
.addField('Created', message.guild.createdAt.toLocaleString(), true)
.addBlankField(true)
.setTimestamp()
.setFooter(client.user.username, client.user.avatarURL);
message.channel.send({embed});
};
exports.conf = {
enabled: true,
aliases: ['info','stats','serverstats','guildinfo','guildstats'],
permLevel: 0
};
exports.help = {
name: 'serverinfo',
description: 'Displays server information & statistics',
usage: 'serverinfo',
category: 'General',
};
@El-Paraguas-YT
Copy link

DOU!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment