Skip to content

Commit

Permalink
should snipe now
Browse files Browse the repository at this point in the history
  • Loading branch information
Kqzz committed Sep 17, 2023
1 parent 94d5798 commit 7a660f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions claimer/snipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func ClaimWithinRange(username string, dropRange mc.DropRange, accounts []*mc.MC
if i != 0 {
time.Sleep(time.Second * 21)
}

authErr := account.MicrosoftAuthenticate("")
if authErr != nil {
log.Log("err", "failed to authenticate %v: %v", account.Email, authErr)
Expand All @@ -49,7 +50,6 @@ func ClaimWithinRange(username string, dropRange mc.DropRange, accounts []*mc.MC
if account.Type == mc.MsGp {
licenseErr := account.License()
if licenseErr != nil {
log.Log("info", "checking license for %v, bearer: %v", account.Email, log.LastQuarter(account.Bearer))
log.Log("err", "failed to license %v: %v", account.Email, licenseErr)
continue
}
Expand All @@ -58,7 +58,6 @@ func ClaimWithinRange(username string, dropRange mc.DropRange, accounts []*mc.MC

if account.Type == mc.Ms {
_, checkErr := account.NameChangeInfo()
log.Log("info", "checking name change for %v, bearer: %v", account.Email, log.LastQuarter(account.Bearer))
if checkErr != nil {
log.Log("err", "failed to confirm name change for %v: %v", account.Email, checkErr)
continue
Expand Down
3 changes: 0 additions & 3 deletions mc/msa.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,6 @@ func (account *MCaccount) MicrosoftAuthenticate(proxy string) error {
return err
}

fmt.Printf("login_with_xbox status: %v\n", resp.StatusCode)
fmt.Printf("login_with_xbox response: %v\n", string(mcBearerResponseBytes))

if resp.StatusCode != 200 {
return fmt.Errorf("login_with_xbox failed: %v", resp.Status)
}
Expand Down

0 comments on commit 7a660f6

Please sign in to comment.