Created
May 17, 2017 15:36
-
-
Save YorkAARGH/0f06bf789137f6a9b0dad7b6fb01a262 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DOU!