mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Implement IBotSteamClient
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user