Bind Discord and OpenWeatherMap tokens to environment variables

This commit is contained in:
2022-08-22 19:29:42 -05:00
parent d790094399
commit d75a02554d
3 changed files with 9 additions and 12 deletions

View File

@ -10,8 +10,10 @@ var (
type (
Config struct {
Handler HandlerConfig `mapstructure:"handler"`
Prefix string `mapstructure:"prefix"`
Handler HandlerConfig `mapstructure:"handler"`
Prefix string `mapstructure:"prefix"`
DiscordToken string `mapstructure:"discord_token"`
OpenWeatherMapToken string `mapstructure:"open_weather_map_token"`
}
HandlerConfig struct {