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,12 +266,11 @@ function checkIfExempt(message) {
|
|||||||
|
|
||||||
function checkInsult(message) {
|
function checkInsult(message) {
|
||||||
if (!message.author.bot) {
|
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.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
||||||
if (message.content.includes("bot", "annoying")) {
|
if (message.content.includes("bot", "annoying")) {
|
||||||
|
if (message.content.includes("block")) {
|
||||||
|
message.delete();
|
||||||
|
} else {
|
||||||
message.react('🇳');
|
message.react('🇳');
|
||||||
message.react('🇴');
|
message.react('🇴');
|
||||||
message.react('❌');
|
message.react('❌');
|
||||||
@ -279,6 +278,7 @@ function checkInsult(message) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user