Browse Source

Test member count

master
Abheek Dhawan 4 years ago
parent
commit
8065a090bc
  1. 8
      index.js

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

Loading…
Cancel
Save