Ignore if user has role "Exempt from NoMoreAcronyms"

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-02 09:51:36 -05:00
parent 1e11748221
commit 6317a9a12e

View File

@ -128,7 +128,7 @@ function checkMessage(message) {
//console.log("Corrected Message: " + correctedMessage); //console.log("Corrected Message: " + correctedMessage);
if (abbreviationKey.target_phrases[matchMessageArray[i]] !== undefined) { if (abbreviationKey.target_phrases[matchMessageArray[i]] !== undefined) {
console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")); console.log("Has role? " + message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms"));
if (message.member.roles.cache.has("1092093109954941078")) { if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
message.react('🇵'); message.react('🇵');
message.react('🇴'); message.react('🇴');
message.react('🇬'); message.react('🇬');