Delete message if message contains the word 'block' and 'bot'
This commit is contained in:
parent
e970da013d
commit
f1d55054f1
8
main.cjs
8
main.cjs
@ -266,16 +266,16 @@ 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('❌');
|
||||
message.react('🇺');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user