From 14c9c5c0a03b9e64ce69c848e08eef04c837a083 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 17 Feb 2018 22:17:13 +0000 Subject: [PATCH] Fix --- commands/portal/portal-status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/portal/portal-status.js b/commands/portal/portal-status.js index b2c7e26a..225534dc 100644 --- a/commands/portal/portal-status.js +++ b/commands/portal/portal-status.js @@ -12,7 +12,7 @@ module.exports = class PortalStatusCommand extends Command { run(msg) { const channels = this.client.provider.get('global', 'portals', []); - const local = msg.channel.type === 'text' ? channels.filter(c => !msg.guild.channels.has(c.id)).length : null; + const local = msg.channel.type === 'text' ? channels.filter(c => msg.guild.channels.has(c.id)).length : 0; return msg.say( `There are currently **${channels.length}** open portals${msg.channel.type === 'text' ? `, **${local}** of which are in this server.`