Add cookie check
This commit is contained in:
parent
c034a2d8e7
commit
017f066224
@ -60,6 +60,12 @@ func build() {
|
|||||||
rbxcookie = strings.Replace(string(data), "\n", "", -1)
|
rbxcookie = strings.Replace(string(data), "\n", "", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if rbxcookie == "" {
|
||||||
|
fmt.Printf("No roblox cookie provided\n")
|
||||||
|
os.Exit(1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
rbx, err := roblox.New(rbxcookie)
|
rbx, err := roblox.New(rbxcookie)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to start roblox api client: %s\n", err)
|
fmt.Printf("Failed to start roblox api client: %s\n", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user