Skip to content

Commit

Permalink
Whoopy
Browse files Browse the repository at this point in the history
  • Loading branch information
41Baloo committed Sep 14, 2024
1 parent 0b81037 commit 2add51e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"log"
"os"
"runtime"
"strings"
"sync"
Expand Down Expand Up @@ -168,7 +169,8 @@ func main() {

if !strings.HasPrefix(bearerToken, "eyJ") { // 'eyJ' is base64 for '{"'
fmt.Println(red("Your input does not seem to be a BearerToken. Make sure you copied the JavaScript's output correctly. BearerTokens start with 'eyJ'."))
select {}
time.Sleep(10 * time.Second)
os.Exit(1)
}

fmt.Println()
Expand All @@ -182,11 +184,12 @@ func main() {

if err != nil {
fmt.Println(red(fmt.Sprintf("Failed to do promotions: %s", err.Error())))
select {}
time.Sleep(10 * time.Second)
os.Exit(1)
}

fmt.Println(green("Promotion requests sent. Depending on timing, multiple leaders may be promoted."))
fmt.Println("If you encounter issues, try the hosted service at https://crew.dudx.info/")

select {}
time.Sleep(10 * time.Second)
}
Binary file modified out/linux/crewInator_linux
Binary file not shown.
Binary file modified out/windows/crewInator_32.exe
Binary file not shown.
Binary file modified out/windows/crewInator_64.exe
Binary file not shown.

0 comments on commit 2add51e

Please sign in to comment.