Delete message if message contains the word 'block' and 'bot'
This commit is contained in:
8
main.cjs
8
main.cjs
@@ -266,12 +266,11 @@ function checkIfExempt(message) {
|
||||
|
||||
function checkInsult(message) {
|
||||
if (!message.author.bot) {
|
||||
if (message.content.includes("bot", "block")) {
|
||||
message.delete();
|
||||
}
|
||||
|
||||
if (!message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
||||
if (message.content.includes("bot", "annoying")) {
|
||||
if (message.content.includes("block")) {
|
||||
message.delete();
|
||||
} else {
|
||||
message.react('🇳');
|
||||
message.react('🇴');
|
||||
message.react('❌');
|
||||
@@ -280,6 +279,7 @@ function checkInsult(message) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user