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");