mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 23:37:54 +00:00
Refactor order of shard initialization
This commit is contained in:
parent
8188de7c97
commit
a3517f8663
3 changed files with 41 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue