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;