From 5ff6d64b6b9f67188b8d400a917ddbba0a18f877 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 14 Feb 2021 21:00:11 -0500 Subject: [PATCH] Blacklisted users banned from phone --- Xiao.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Xiao.js b/Xiao.js index 807b160c..7f429c07 100644 --- a/Xiao.js +++ b/Xiao.js @@ -156,6 +156,7 @@ client.on('message', async msg => { const hasImage = msg.attachments.size !== 0; const hasEmbed = msg.embeds.length !== 0; if (msg.author.bot || (!hasText && !hasImage && !hasEmbed)) return; + if (client.blacklist.user.includes(msg.author.id)) return; const origin = client.phone.find(call => call.origin.id === msg.channel.id); const recipient = client.phone.find(call => call.recipient.id === msg.channel.id); if (!origin && !recipient) return;