This commit is contained in:
Dragon Fire
2020-05-13 18:38:24 -04:00
parent 577a665dc4
commit 37ded92032
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,6 @@ client.on('ready', () => {
});
client.on('message', async msg => {
if (!msg.channel.topic || !msg.channel.topic.includes('<xiao:phone>')) return;
const hasText = Boolean(msg.content);
const hasImage = msg.attachments.size !== 0;
const hasEmbed = msg.embeds.length !== 0;
@@ -83,6 +82,7 @@ client.on('message', async msg => {
const recipient = client.phone.find(call => call.recipient.id === msg.channel.id);
if (!origin && !recipient) return;
const call = origin || recipient;
if (!call.ownerOrigin && (!msg.channel.topic || !msg.channel.topic.includes('<xiao:phone>'))) return;
if (!call.active) return;
if (call.ownerOrigin && msg.guild.id === origin.guild.id && !client.isOwner(msg.author)) return;
try {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "114.10.0",
"version": "114.10.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {