Add online user counting back (ish)
This commit is contained in:
parent
697a24c4fa
commit
042327d4aa
@ -72,9 +72,8 @@ 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)
|
||||||
// Presence updates are disabled, for now we just assume every user is online, I guess
|
usersOnline.Add(user.Id);
|
||||||
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