From b392a1384304c28edfb28b4b7de838da2735292f Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 6 May 2020 21:07:50 -0400 Subject: [PATCH] Fix --- Xiao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xiao.js b/Xiao.js index 79c07058..654eeb90 100644 --- a/Xiao.js +++ b/Xiao.js @@ -69,7 +69,7 @@ client.on('message', async msg => { const hasText = Boolean(msg.content); const hasImage = msg.attachments.size !== 0; const hasEmbed = msg.embeds.length !== 0; - if (!hasText && !hasImage && !hasEmbed) return; + if (msg.author.bot || (!hasText && !hasImage && !hasEmbed)) 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;