Delete message if message contains the word 'block' and 'bot'
This commit is contained in:
parent
0d9a8aecc7
commit
836f3de31d
2
main.cjs
2
main.cjs
@ -266,7 +266,7 @@ function checkIfExempt(message) {
|
||||
|
||||
function checkInsult(message) {
|
||||
if (!message.author.bot) {
|
||||
if (message.content.includes("block")) {
|
||||
if (message.content.includes("block", "bot")) {
|
||||
message.delete();
|
||||
} else
|
||||
if (!message.member.roles.cache.some(role => role.name == "Exempt from NoMoreAcronyms")) {
|
||||
|
Loading…
Reference in New Issue
Block a user