diff options
| author | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
| commit | 9dff52f7d047c905326bc2f476ede5463e00f2a0 (patch) | |
| tree | 1fec8563b3b72fde9b2ab7ad9e56a97398798685 /src/commands/utility/membercount.js | |
| parent | typescript (diff) | |
| download | s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.tar.xz s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.zip | |
typescript final
Diffstat (limited to 'src/commands/utility/membercount.js')
| -rw-r--r-- | src/commands/utility/membercount.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/commands/utility/membercount.js b/src/commands/utility/membercount.js new file mode 100644 index 0000000..d799c68 --- /dev/null +++ b/src/commands/utility/membercount.js @@ -0,0 +1,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()); + } +};
\ No newline at end of file |