wip serverinfo command
This commit is contained in:
parent
b777077868
commit
2dc327b484
1 changed files with 34 additions and 0 deletions
34
bot/commands/Utility/serverinfo.js
Normal file
34
bot/commands/Utility/serverinfo.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
module.exports = class {
|
||||
constructor (name, category) {
|
||||
this.name = name,
|
||||
this.category = category,
|
||||
this.enabled = true,
|
||||
this.devOnly = false,
|
||||
this.aliases = [],
|
||||
this.userPerms = [],
|
||||
this.botPerms = [],
|
||||
this.cooldown = 2000,
|
||||
this.help = {
|
||||
description: '',
|
||||
arguments: '',
|
||||
details: '',
|
||||
examples: ''
|
||||
};
|
||||
}
|
||||
|
||||
run (client, message, args, data) { //eslint-disable-line no-unused-vars
|
||||
const guild = message.channel.guild;
|
||||
|
||||
const embed = new client.RichEmbed()
|
||||
.setColour(client.functions.displayHexColour(message.channel.guild))
|
||||
.setTitle(guild.name)
|
||||
.setThumbnail(guild.iconURL)
|
||||
.addField('ID', guild.id, true)
|
||||
.addField('Owner', `<@${guild.ownerID}>`, true)
|
||||
.addField('Region', guild.region.toProperCase(), true)
|
||||
.addField('Boosts', `${guild.premiumSubscriptionCount} (Level ${guild.premiumTier})`, true)
|
||||
.addField('Member Count (Approximate)', `${guild.memberCount} (${guild.memberCount - guild.members.filter(member => member.user.bot).length} humans, ${guild.members.filter(member => member.user.bot).length} bots)`, true)
|
||||
.addField('Channels', `${guild.channels.size} ()`)
|
||||
message.channel.createMessage({ embed: embed });
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue