Added checkInsult()

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-02 19:02:58 -05:00
parent 95e6350f63
commit a6ded6dba3

13
main.ts
View File

@ -176,11 +176,12 @@ function checkMessage(message) {
}
function checkInsult(message) {
if (message.content.includes("bot", "annoying") || message.content.includes("bad")) {
message.react('🇳');
message.react('🇴');
message.react('❌');
message.react('🇺');
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('🇺');
}
}
}