mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user