Skip to content

Commit

Permalink
+ added link to steamgroup id file
Browse files Browse the repository at this point in the history
  • Loading branch information
sp0ok3r committed Jul 9, 2021
1 parent 1f155ab commit 42bb49f
Show file tree
Hide file tree
Showing 11 changed files with 224 additions and 262 deletions.
27 changes: 16 additions & 11 deletions MercuryBOT/AccountLogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ static void OnConnected(SteamClient.ConnectedCallback callback)

//Sucess
Console.WriteLine("[" + Program.BOTNAME + "] - Connected to Steam! Logging in '{0}'...", user);
Notification.NotifHelper.MessageBox.Show("Info", "Connected to Steam!\nLogging in " + user + "...");
// Notification.NotifHelper.MessageBox.Show("Info", "Connected to Steam!\nLogging in " + user + "...");
LoginStatus = "Connected to Steam! Logging in " + user;

byte[] sentryHash = null;
Expand Down Expand Up @@ -417,7 +417,7 @@ static void OnLoggedOn(SteamUser.LoggedOnCallback callback)

if (is2FA)
{
Notification.NotifHelper.MessageBox.Show("Info", "Steam Guard detected, showing input form!");
//Notification.NotifHelper.MessageBox.Show("Info", "Steam Guard detected, showing input form!");
LoginStatus = "Steam Guard detected, showing input form!";

SteamGuard SteamGuard = new SteamGuard("Phone", user);
Expand Down Expand Up @@ -453,19 +453,19 @@ static void OnLoggedOn(SteamUser.LoggedOnCallback callback)
if (pass != null)
{
Console.WriteLine("[" + Program.BOTNAME + "] - Login key expired. Connecting with user password.");
Notification.NotifHelper.MessageBox.Show("Info", "Login key expired.\nConnecting with user password...");
//Notification.NotifHelper.MessageBox.Show("Info", "Login key expired.\nConnecting with user password...");
LoginStatus = " Login key expired. Connecting with user password.";
}
else
{
Console.WriteLine("[" + Program.BOTNAME + "] - Login key expired.");
Notification.NotifHelper.MessageBox.Show("Info", "Login key expired!\nConnecting...");
// Notification.NotifHelper.MessageBox.Show("Info", "Login key expired!\nConnecting...");
LoginStatus = "Login key expired! Connecting...";
}
}
else
{
Notification.NotifHelper.MessageBox.Show("Info", "Steam Guard detected, showing input form!");
//Notification.NotifHelper.MessageBox.Show("Info", "Steam Guard detected, showing input form!");
LoginStatus = "Steam Guard detected, showing input form!";

SteamGuard SteamGuard = new SteamGuard(callback.EmailDomain, user);
Expand Down Expand Up @@ -499,6 +499,7 @@ static void OnLoggedOn(SteamUser.LoggedOnCallback callback)
Notification.NotifHelper.MessageBox.Show("Info", "Successfully logged on!");
LoginStatus = "Successfully logged on!";


CurrentSteamID = steamClient.SteamID.ConvertToUInt64();

myUserNonce = callback.WebAPIUserNonce;
Expand Down Expand Up @@ -551,12 +552,17 @@ public static void GetPrivacySettings()

static void OnDisconnected(SteamClient.DisconnectedCallback callback)
{
if (callback.UserInitiated)
{
return;
}

EResult lastLogOnResult = LastLogOnResult;
//if serviceunabalieve
CurrentPersonaState = 0;

/*
DisconnectedCounter++;

if (isRunning)
{
if (DisconnectedCounter >= MaxDisconnects)
Expand All @@ -569,10 +575,11 @@ static void OnDisconnected(SteamClient.DisconnectedCallback callback)
steamClient.Disconnect();
}
}
Console.WriteLine("[" + Program.BOTNAME + "] - Reconnecting in 2s ..." + callback.UserInitiated);
LoginStatus = "Reconnecting in 2s...";
*/
Console.WriteLine("[" + Program.BOTNAME + "] - Reconnecting in 10s ..." + callback.UserInitiated);
LoginStatus = "Reconnecting in 10s...";

Thread.Sleep(2000);
TimeSpan.FromSeconds(10);
steamClient.Connect();
}

Expand Down Expand Up @@ -661,8 +668,6 @@ static void OnPersonaState(SteamFriends.PersonaStateCallback callback)
}

AvatarHash = avatarHash;

Console.WriteLine(avatarHash.ToString());
}
}

Expand Down
15 changes: 10 additions & 5 deletions MercuryBOT/AddAcc.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions MercuryBOT/EditAcc.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 20 additions & 2 deletions MercuryBOT/Games/SelectGames.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions MercuryBOT/Games/SelectGames.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ private void SelectGames_FormClosed(object sender, FormClosedEventArgs e)

GC.Collect();
GC.WaitForPendingFinalizers();

if (chck_clearimagescache.Checked)
{
var path = Path.GetTempPath() + @"\MercuryTemp\GamesImg\" + AccountLogin.CurrentUsername;
Directory.GetFiles(path).ToList().ForEach(File.Delete);
Directory.Delete(path);
}
}
}
}
Expand Down

0 comments on commit 42bb49f

Please sign in to comment.