This commit is contained in:
Daniel Odendahl Jr
2018-02-17 22:13:59 +00:00
parent 2ea7c09361
commit 76cbe8dc8b
+1 -1
View File
@@ -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)).size : null;
const local = msg.channel.type === 'text' ? channels.filter(c => !msg.guild.channels.has(c.id)).length : null;
return msg.say(
`There are currently **${channels.length}** open portals${msg.channel.type === 'text'
? `, **${local}** of which are in this server.`