Added additional role to check

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-02 19:18:10 -05:00
parent 9c64b37a56
commit dc283d9497

22
main.ts
View File

@ -134,10 +134,10 @@ function checkMessage(message) {
if (!message.author.bot) { if (!message.author.bot) {
if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) { if (message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
if (!message.member.roles.cache.some(role => role.name == "NoReactions")) { if (!message.member.roles.cache.some(role => role.name == "NoReactions")) {
message.react('🇵'); message.react('🇵');
message.react('🇴'); message.react('🇴');
message.react('🇬'); message.react('🇬');
return; return;
} }
} }
} }
@ -178,12 +178,14 @@ function checkMessage(message) {
} }
function checkInsult(message) { function checkInsult(message) {
if (!message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) { if (!message.author.bot) {
if (message.content.includes("bot", "annoying")) { if (!message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
message.react('🇳'); if (message.content.includes("bot", "annoying")) {
message.react('🇴'); message.react('🇳');
message.react('❌'); message.react('🇴');
message.react('🇺'); message.react('❌');
message.react('🇺');
}
} }
} }
} }