From 514599390f946d3f52a376ec04e0b17ed9beb2ee Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 25 Jun 2019 12:37:22 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs | 4 ++-- ArchiSteamFarm/Utilities.cs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs index 8b5a47b41..751563f8a 100644 --- a/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs +++ b/ArchiSteamFarm.CustomPlugins.ExamplePlugin/ExamplePlugin.cs @@ -153,8 +153,8 @@ namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin { // This is the earliest method that will be called, right after loading the plugin, long before any bot initialization takes place // It's a good place to initialize all potential (non-bot-specific) structures that you will need across lifetime of your plugin, such as global timers, concurrent dictionaries and alike // If you do not have any global structures to initialize, you can leave this function empty - // At this point you can access core ASF's functionality, such as logging or a web browser - // Once all plugins execute their OnLoaded() methods, OnASFInit() will be called next + // At this point you can access core ASF's functionality, such as logging, but more advanced structures (like ASF's WebBrowser) will be available in OnASFInit(), which itself takes place after every plugin gets OnLoaded() + // Typically you should use this function only for preparing core structures of your plugin, and optionally also sending a message to the user (e.g. support link, welcome message or similar), ASF-specific things should usually happen in OnASFInit() public void OnLoaded() { ASF.ArchiLogger.LogGenericInfo("Hey! Thanks for checking if our example plugin works fine, this is a confirmation that indeed " + nameof(OnLoaded) + "() method was called!"); ASF.ArchiLogger.LogGenericInfo("Good luck in whatever you're doing!"); diff --git a/ArchiSteamFarm/Utilities.cs b/ArchiSteamFarm/Utilities.cs index 70fdb79e6..2b084d272 100644 --- a/ArchiSteamFarm/Utilities.cs +++ b/ArchiSteamFarm/Utilities.cs @@ -21,11 +21,9 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.Linq; using System.Net; -using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks;