From 017f066224ab855ff1f5dede3e1645f753fc2acb Mon Sep 17 00:00:00 2001 From: itzaname Date: Fri, 27 Oct 2023 13:19:31 -0400 Subject: [PATCH] Add cookie check --- cmd/rbxcompiler/rbxcompiler.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/rbxcompiler/rbxcompiler.go b/cmd/rbxcompiler/rbxcompiler.go index 60a6590..9fd54f9 100644 --- a/cmd/rbxcompiler/rbxcompiler.go +++ b/cmd/rbxcompiler/rbxcompiler.go @@ -60,6 +60,12 @@ func build() { 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) if err != nil { fmt.Printf("Failed to start roblox api client: %s\n", err)