Compare commits

..

No commits in common. "b419cfde698c987bb633c9e727d245f5ecddff07" and "446ac616bf15c454191422696d3b10677ec47b03" have entirely different histories.

2 changed files with 4 additions and 7 deletions

View File

@ -126,14 +126,14 @@ func setupConfig() {
viper.SetConfigType("toml") viper.SetConfigType("toml")
viper.AddConfigPath(".") viper.AddConfigPath(".")
err = viper.ReadInConfig()
viper.BindEnv("DEBUG") viper.BindEnv("DEBUG")
viper.BindEnv("DISCORD_TOKEN") viper.BindEnv("DISCORD_TOKEN")
viper.BindEnv("OPEN_WEATHER_MAP_TOKEN") viper.BindEnv("OPEN_WEATHER_MAP_TOKEN")
if err := viper.ReadInConfig(); err != nil { if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
if _, ok := err.(viper.ConfigFileNotFoundError); !ok { log.Fatalf("fatal error config file: %v", err)
log.Fatalf("fatal error config file: %v", err)
}
} }
err = viper.Unmarshal(&C) err = viper.Unmarshal(&C)

View File

@ -1,4 +1,3 @@
---
version: "3.9" version: "3.9"
services: services:
bot: bot:
@ -7,5 +6,3 @@ services:
- BEEPBOOP_DISCORD_TOKEN - BEEPBOOP_DISCORD_TOKEN
- BEEPBOOP_OPEN_WEATHER_MAP_TOKEN - BEEPBOOP_OPEN_WEATHER_MAP_TOKEN
- BEEPBOOP_DEBUG=true - BEEPBOOP_DEBUG=true
volumes:
- ./config.toml:/config.toml