|
@ -13,6 +13,9 @@ client.on("message", message => { |
|
|
case '$score': |
|
|
case '$score': |
|
|
startScoring(message); |
|
|
startScoring(message); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case '$membercount': |
|
|
|
|
|
memberCount(message): |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
if (message.content.toLowerCase().startsWith("$bulkdelete")) { |
|
|
if (message.content.toLowerCase().startsWith("$bulkdelete")) { |
|
|
bulkDelete(message); |
|
|
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) { |
|
|
async function roleRequest(message) { |
|
|
const readerRole = message.guild.roles.cache.get("826840765526835240"); |
|
|
const readerRole = message.guild.roles.cache.get("826840765526835240"); |
|
|
const specRole = message.guild.roles.cache.get("826849213954523216"); |
|
|
const specRole = message.guild.roles.cache.get("826849213954523216"); |
|
|