Improved .shardstats format + small cleanup

This commit is contained in:
Kwoth
2021-06-20 06:15:30 +02:00
parent c86bf6f300
commit 77904a3b00
6 changed files with 50 additions and 30 deletions

View File

@@ -8,15 +8,15 @@ namespace NadekoBot.Services
bool RestartBot();
void Die();
bool RestartShard(int shardId);
IEnumerable<ShardStatus> GetAllShardStatuses();
IList<ShardStatus> GetAllShardStatuses();
int GetGuildCount();
}
public class ShardStatus
{
public Discord.ConnectionState ConnectionState { get; set; }
public DateTime Time { get; set; }
public DateTime LastUpdate { get; set; }
public int ShardId { get; set; }
public int Guilds { get; set; }
public int GuildCount { get; set; }
}
}