2016-08-02 22:51:09 +02:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using SteamKit2;
|
2016-08-02 12:13:15 +02:00
|
|
|
|
|
|
|
|
|
|
namespace ArchiSteamFarm {
|
|
|
|
|
|
internal static class Events {
|
2016-08-02 22:51:09 +02:00
|
|
|
|
internal static void OnBotShutdown() {
|
|
|
|
|
|
if (Program.ShutdownSequenceInitialized || Program.WCF.IsServerRunning() || Bot.Bots.Values.Any(bot => bot.KeepRunning)) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Logging.LogGenericInfo("No bots are running, exiting");
|
|
|
|
|
|
Task.Delay(5000).Wait();
|
|
|
|
|
|
Program.Shutdown();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-08-02 12:13:15 +02:00
|
|
|
|
internal static void OnStateUpdated(Bot bot, SteamFriends.PersonaStateCallback callback) {
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|