@@ 175-181 (lines=7) @@ | ||
172 | ||
173 | // Count the amount of people we are available to.. |
|
174 | /** @var Guild $guild */ |
|
175 | foreach ($this->discord->getClient()->getGuildsAttribute()->all() as $guild) { |
|
176 | $this->extras['memberCount'] += $guild->member_count; |
|
177 | $this->extras['guildCount']++; |
|
178 | $this->extras['guild']['memberCount']["id{$guild->id}"] = $guild->member_count; |
|
179 | $this->extras['onMessagePlugins'] = $this->onMessage; |
|
180 | $this->extras['onVoicePlugins'] = $this->onVoice; |
|
181 | } |
|
182 | ||
183 | $this->log->addInfo("Member count, currently available to: {$this->extras['memberCount']} people"); |
|
184 | ||
@@ 202-208 (lines=7) @@ | ||
199 | $this->extras['memberCount'] = 0; |
|
200 | $this->extras['guildCount'] = 0; |
|
201 | /** @var Guild $guild */ |
|
202 | foreach ($this->discord->getClient()->getGuildsAttribute()->all() as $guild) { |
|
203 | $this->extras['memberCount'] += $guild->member_count; |
|
204 | $this->extras['guildCount']++; |
|
205 | $this->extras['guild']['memberCount']["id{$guild->id}"] = $guild->member_count; |
|
206 | $this->extras['onMessagePlugins'] = $this->onMessage; |
|
207 | $this->extras['onVoicePlugins'] = $this->onVoice; |
|
208 | } |
|
209 | ||
210 | // Output periodic information while doing the recounting stuff |
|
211 | $this->log->addInfo('Currently running audio streams: ' . count($this->audioStreams)); |