From 8065a090bc8925222e1f858d3138a22cf702e5b4 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 22:52:23 -0500 Subject: [PATCH] Test member count --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index d4a03c7..425e8b9 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,9 @@ client.on("message", message => { case '$score': startScoring(message); break; + case '$membercount': + memberCount(message): + break; } if (message.content.toLowerCase().startsWith("$bulkdelete")) { bulkDelete(message); @@ -21,6 +24,11 @@ client.on("message", message => { } }); +async function memberCount(message) { + const memberCount = message.guild.memberCount; + message.channel.send(`Member count: ${memberCount}`); +} + async function roleRequest(message) { const readerRole = message.guild.roles.cache.get("826840765526835240"); const specRole = message.guild.roles.cache.get("826849213954523216");