Delete message if message contains the word 'block' and 'bot'
This commit is contained in:
parent
f1d55054f1
commit
0d9a8aecc7
7
main.cjs
7
main.cjs
@ -266,11 +266,11 @@ function checkIfExempt(message) {
|
|||||||
|
|
||||||
function checkInsult(message) {
|
function checkInsult(message) {
|
||||||
if (!message.author.bot) {
|
if (!message.author.bot) {
|
||||||
if (!message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
|
||||||
if (message.content.includes("bot", "annoying")) {
|
|
||||||
if (message.content.includes("block")) {
|
if (message.content.includes("block")) {
|
||||||
message.delete();
|
message.delete();
|
||||||
} else {
|
} else
|
||||||
|
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('🇴');
|
||||||
message.react('❌');
|
message.react('❌');
|
||||||
@ -278,7 +278,6 @@ function checkInsult(message) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user