Expose cached SteamID to IPC

This commit is contained in:
JustArchi
2018-09-23 02:17:17 +02:00
parent cc73753782
commit a53bf0fd3d
6 changed files with 27 additions and 29 deletions

View File

@@ -74,7 +74,7 @@ namespace ArchiSteamFarm {
const string request = URL + "/Api/HeartBeat";
Dictionary<string, string> data = new Dictionary<string, string>(2) {
{ "SteamID", Bot.CachedSteamID.ToString() },
{ "SteamID", Bot.SteamID.ToString() },
{ "Guid", Program.GlobalDatabase.Guid.ToString("N") }
};
@@ -116,7 +116,7 @@ namespace ArchiSteamFarm {
return;
}
HashSet<Steam.Asset> inventory = await Bot.ArchiWebHandler.GetInventory(Bot.CachedSteamID, tradable: true, wantedTypes: acceptedMatchableTypes).ConfigureAwait(false);
HashSet<Steam.Asset> inventory = await Bot.ArchiWebHandler.GetInventory(Bot.SteamID, tradable: true, wantedTypes: acceptedMatchableTypes).ConfigureAwait(false);
// This is actually inventory failure, so we'll stop sending heartbeats but not record it as valid check
if (inventory == null) {
@@ -133,7 +133,7 @@ namespace ArchiSteamFarm {
const string request = URL + "/Api/Announce";
Dictionary<string, string> data = new Dictionary<string, string>(9) {
{ "SteamID", Bot.CachedSteamID.ToString() },
{ "SteamID", Bot.SteamID.ToString() },
{ "Guid", Program.GlobalDatabase.Guid.ToString("N") },
{ "Nickname", nickname ?? "" },
{ "AvatarHash", avatarHash ?? "" },