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:
parent
459020eab7
commit
796d900adb
3 changed files with 18 additions and 0 deletions
13
backend/src/plugins/Utility/commands/MemberCountCmd.ts
Normal file
13
backend/src/plugins/Utility/commands/MemberCountCmd.ts
Normal 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**`);
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue