Implement IBotSteamClient

This commit is contained in:
JustArchi
2019-03-07 16:35:36 +01:00
parent 000ddca825
commit ca462f2a82
3 changed files with 96 additions and 0 deletions

View File

@@ -1058,6 +1058,16 @@ namespace ArchiSteamFarm {
await Core.OnBotInit(bot).ConfigureAwait(false);
HashSet<ClientMsgHandler> customHandlers = await Core.OnBotSteamHandlersInit(bot).ConfigureAwait(false);
if ((customHandlers != null) && (customHandlers.Count > 0)) {
foreach (ClientMsgHandler customHandler in customHandlers) {
bot.SteamClient.AddHandler(customHandler);
}
}
await Core.OnBotSteamCallbacksInit(bot, bot.CallbackManager).ConfigureAwait(false);
await bot.InitModules().ConfigureAwait(false);
bot.InitStart();