fix env variables names
This commit is contained in:
Vendored
+1
-5
@@ -8,8 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func GetEnvVariables() Env {
|
func GetEnvVariables() Env {
|
||||||
if os.Getenv("RAILWAY_ENVIRONMENT") == "production" {
|
ids := strings.Split(os.Getenv("DISCORD_SERVER_IDS"), ",")
|
||||||
ids := strings.Split(os.Getenv("SERVER_IDS"), ",")
|
|
||||||
|
|
||||||
serverIDs := []tempest.Snowflake{}
|
serverIDs := []tempest.Snowflake{}
|
||||||
for _, id := range ids {
|
for _, id := range ids {
|
||||||
@@ -27,9 +26,6 @@ func GetEnvVariables() Env {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Env{}
|
|
||||||
}
|
|
||||||
|
|
||||||
type Env struct {
|
type Env struct {
|
||||||
AppID tempest.Snowflake
|
AppID tempest.Snowflake
|
||||||
PublicKey string
|
PublicKey string
|
||||||
|
|||||||
Reference in New Issue
Block a user