fix env variables names

This commit is contained in:
unintendedfraud
2023-08-13 01:59:40 +02:00
parent 78ad0fbf27
commit 89124f62d7
2 changed files with 14 additions and 17 deletions
Vendored
+1 -5
View File
@@ -8,8 +8,7 @@ import (
)
func GetEnvVariables() Env {
if os.Getenv("RAILWAY_ENVIRONMENT") == "production" {
ids := strings.Split(os.Getenv("SERVER_IDS"), ",")
ids := strings.Split(os.Getenv("DISCORD_SERVER_IDS"), ",")
serverIDs := []tempest.Snowflake{}
for _, id := range ids {
@@ -25,9 +24,6 @@ func GetEnvVariables() Env {
ServerIDs: serverIDs,
OpenaiHalToken: os.Getenv("OPENAI_HAL"),
}
}
return Env{}
}
type Env struct {
+1
View File
@@ -13,6 +13,7 @@ import (
)
func main() {
fmt.Println("HAL started")
env := env.GetEnvVariables()
dgclient, err := discordbot.New(env.Token)