Remove blocked channels from randomizer

This commit is contained in:
Dragon Fire
2020-09-06 09:57:59 -04:00
parent f674156808
commit b807b762c6
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -50,6 +50,8 @@ module.exports = class PhoneCommand extends Command {
&& !channel.topic.includes('<xiao:phone:no-random>')
&& !channel.topic.includes(`<xiao:phone:block:${msg.channel.id}>`)
&& !channel.topic.includes(`<xiao:phone:block:${msg.guild.id}>`)
&& (msg.channel.topic && !msg.channel.topic.includes(`<xiao:phone:block:${channel.id}>`))
&& (msg.channel.topic && !msg.channel.topic.includes(`<xiao:phone:block:${channel.guild.id}>`))
&& !msg.guild.channels.cache.has(channel.id)
&& (channelID ? true : !this.client.inPhoneCall(channel)));
if (!channels.size) return msg.reply('No channels currently allow phone calls...');
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.23.0",
"version": "119.23.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {