Refactor order of shard initialization

This commit is contained in:
Ske
2020-05-09 15:44:56 +02:00
parent 8188de7c97
commit a3517f8663
3 changed files with 41 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ namespace PluralKit.Bot
_client.Resumed += args => UpdateBotStatus(args.Client);
// Init the shard stuff
_services.Resolve<ShardInfoService>().Init(_client);
_services.Resolve<ShardInfoService>().Init();
// Not awaited, just needs to run in the background
// Trying our best to run it at whole minute boundaries (xx:00), with ~250ms buffer
@@ -175,7 +175,7 @@ namespace PluralKit.Bot
catch (WebSocketException) { }
}
private void FrameworkLog(object sender, DebugLogMessageEventArgs args)
public void FrameworkLog(object sender, DebugLogMessageEventArgs args)
{
// Bridge D#+ logging to Serilog
LogEventLevel level = LogEventLevel.Verbose;