3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00
zeppelin/backend/src/plugins/Utility/commands/MemberCountCmd.ts
2021-05-16 11:01:21 +01:00

13 lines
428 B
TypeScript

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**`);
},
});