From 35e30f481bb27ab86889f97f47ccc4137d3a63bf Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 29 Apr 2020 00:04:53 +0200 Subject: [PATCH] Fix error in stats collection task --- PluralKit.Bot/Services/PeriodicStatCollector.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Services/PeriodicStatCollector.cs b/PluralKit.Bot/Services/PeriodicStatCollector.cs index 10a8b225..75d68165 100644 --- a/PluralKit.Bot/Services/PeriodicStatCollector.cs +++ b/PluralKit.Bot/Services/PeriodicStatCollector.cs @@ -72,7 +72,9 @@ namespace PluralKit.Bot foreach (var user in guild.Members.Values) { 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);