mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
feat: show total shards from cluster configuration if present
This commit is contained in:
parent
ae543b9c18
commit
857e20b601
2 changed files with 2 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ public class Misc
|
|||
var now = SystemClock.Instance.GetCurrentInstant().ToUnixTimeSeconds();
|
||||
var shardUptime = Duration.FromSeconds(now - shardInfo?.LastConnection ?? 0);
|
||||
|
||||
var shardTotal = shards.Count();
|
||||
var shardTotal = _botConfig.Cluster?.TotalShards ?? shards.Count();
|
||||
int shardClusterTotal = ctx.Cluster.Shards.Count;
|
||||
var shardUpTotal = shards.Where(x => x.Up).Count();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue