obtaining apikey and its state

This commit is contained in:
Ilia
2017-01-09 15:05:20 +02:00
parent cb3ca3713e
commit 0ead38f069
3 changed files with 108 additions and 69 deletions

View File

@@ -60,7 +60,7 @@ namespace ArchiSteamFarm {
internal readonly string BotName;
internal bool HasMobileAuthenticator => BotDatabase?.MobileAuthenticator != null;
internal bool HasValidApiKey => !string.IsNullOrEmpty(BotConfig?.SteamApiKey) && (BotConfig.SteamApiKey.Length == 32);
internal bool HasValidApiKey => !string.IsNullOrEmpty(ArchiWebHandler.SteamApiKey);
internal bool IsConnectedAndLoggedOn => (SteamClient?.IsConnected == true) && (SteamClient.SteamID != null);
internal bool IsPlayingPossible => !PlayingBlocked && (LibraryLockedBySteamID == 0);