Fix error in stats collection task
This commit is contained in:
parent
66dd850504
commit
35e30f481b
@ -72,7 +72,9 @@ namespace PluralKit.Bot
|
|||||||
foreach (var user in guild.Members.Values)
|
foreach (var user in guild.Members.Values)
|
||||||
{
|
{
|
||||||
usersKnown.Add(user.Id);
|
usersKnown.Add(user.Id);
|
||||||
if (user.Presence.Status == UserStatus.Online) usersOnline.Add(user.Id);
|
|
||||||
|
// Presence updates are disabled, for now we just assume every user is online, I guess
|
||||||
|
usersOnline.Add(user.Id);
|
||||||
}
|
}
|
||||||
|
|
||||||
_metrics.Measure.Gauge.SetValue(BotMetrics.MembersTotal, usersKnown.Count);
|
_metrics.Measure.Gauge.SetValue(BotMetrics.MembersTotal, usersKnown.Count);
|
||||||
|
Loading…
Reference in New Issue
Block a user