3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 08:45:03 +00:00

feat: added membercount command

This commit is contained in:
Almeida 2021-05-16 11:01:21 +01:00
parent 459020eab7
commit 796d900adb
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import { utilityCmd } from "../types";
export const MemberCountCmd = utilityCmd({
trigger: "membercount",
description: "Show the amount of members in the server",
usage: "!membercount",
permission: "can_membercount",
async run({ message: msg, pluginData }) {
const memberCount = pluginData.guild.memberCount.toLocaleString();
msg.channel.createMessage(`This server has **${memberCount} members**`);
},
});