Delete message if message contains the word 'block' and 'bot'

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-11-06 12:42:31 -06:00
parent 0d9a8aecc7
commit 836f3de31d

View File

@ -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")) {