Added additional role to check
This commit is contained in:
parent
9c64b37a56
commit
dc283d9497
22
main.ts
22
main.ts
@ -134,10 +134,10 @@ function checkMessage(message) {
|
||||
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 == "NoReactions")) {
|
||||
message.react('🇵');
|
||||
message.react('🇴');
|
||||
message.react('🇬');
|
||||
return;
|
||||
message.react('🇵');
|
||||
message.react('🇴');
|
||||
message.react('🇬');
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -178,12 +178,14 @@ function checkMessage(message) {
|
||||
|
||||
}
|
||||
function checkInsult(message) {
|
||||
if (!message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
||||
if (message.content.includes("bot", "annoying")) {
|
||||
message.react('🇳');
|
||||
message.react('🇴');
|
||||
message.react('❌');
|
||||
message.react('🇺');
|
||||
if (!message.author.bot) {
|
||||
if (!message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
||||
if (message.content.includes("bot", "annoying")) {
|
||||
message.react('🇳');
|
||||
message.react('🇴');
|
||||
message.react('❌');
|
||||
message.react('🇺');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user