This commit is contained in:
Daniel Odendahl Jr
2018-02-17 22:18:01 +00:00
parent 14c9c5c0a0
commit e88a85f1af
+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)).length : 0;
const local = msg.channel.type === 'text' ? channels.filter(c => msg.guild.channels.has(c)).length : 0;
return msg.say(
`There are currently **${channels.length}** open portals${msg.channel.type === 'text'
? `, **${local}** of which are in this server.`