This commit is contained in:
Dragon Fire
2020-05-06 21:07:50 -04:00
parent d62f4f0365
commit b392a13843
+1 -1
View File
@@ -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;