mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 13:54:36 +00:00
Removed disconnected server count
Made redundant by per-shard status on every birthday update
This commit is contained in:
parent
a9e87d8021
commit
f1e7bd8c67
1 changed files with 0 additions and 12 deletions
|
@ -14,18 +14,6 @@ namespace BirthdayBot.BackgroundServices
|
|||
{
|
||||
var uptime = DateTimeOffset.UtcNow - Program.BotStartTime;
|
||||
Log($"Bot uptime: {Common.BotUptime}");
|
||||
|
||||
// Disconnection warn
|
||||
foreach (var shard in BotInstance.DiscordClient.Shards)
|
||||
{
|
||||
if (shard.ConnectionState == Discord.ConnectionState.Disconnected)
|
||||
{
|
||||
Log($"Shard {shard.ShardId} is disconnected! Restart the app if this persists.");
|
||||
// The library alone cannot be restarted as it is in an unknown state. It was not designed to be restarted.
|
||||
// TODO This is the part where we'd signal something to restart us if we were fancy.
|
||||
}
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue