This commit is contained in:
Dragon Fire
2020-03-19 12:54:41 -04:00
parent af6932d6b2
commit 7a3a27668e
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class PhoneCommand extends Command {
}
async run(msg, { channelID }) {
if (channelID !== 'count' && !msg.channel.topic || !msg.channel.topic.includes('<xiao:phone>')) {
if (channelID !== 'count' && (!msg.channel.topic || !msg.channel.topic.includes('<xiao:phone>'))) {
return msg.say('You can only start a call in a channel with `<xiao:phone>` in the topic.');
}
const inCall = this.client.phone.some(call => [call.origin.id, call.recipient.id].includes(msg.channel.id));