1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-08 17:06:42 +00:00

open in browser

This commit is contained in:
Laura
2025-08-11 01:59:26 +02:00
parent d352047a8d
commit 92a67123e7
3 changed files with 36 additions and 3 deletions

4
env.go
View File

@@ -9,6 +9,7 @@ import (
var (
Debug bool
NoOpen bool
OpenRouterToken string
)
@@ -16,12 +17,13 @@ func init() {
log.MustPanic(godotenv.Load())
Debug = os.Getenv("DEBUG") == "true"
NoOpen = os.Getenv("NO_OPEN") == "true"
if OpenRouterToken = os.Getenv("OPENROUTER_TOKEN"); OpenRouterToken == "" {
log.Panic(errors.New("missing openrouter token"))
}
if Debug {
log.Debug("Debug mode enabled")
log.Warning("Debug mode enabled")
}
}