1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
const { Command } = require('discord.js-commando');
const emoji = require('emoji-random');
module.exports = class MemberCountUtility extends Command {
constructor(client) {
super(client, {
name: 'membercount',
aliases: ['memberc', 'mcount', 'mc'],
group: 'utility',
memberName: 'membercount',
description: 'says how many members there are in the server',
throttling: {
usages: 5,
duration: 30
},
guildOnly: true,
examples: [
's5n!membercount',
's5n!memberc',
's5n!mcount',
's5n!mc'
]
});
}
run(msg) {
msg.reply(`there are **${msg.guild.memberCount}** members in **${msg.guild.name}** ` + emoji.random());
}
};
|