add normal config spot
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
stryan 2021-08-07 13:36:26 -04:00
parent 31f3af0403
commit 72b8192f3b

View File

@ -26,6 +26,7 @@ var Statefile string
func main() {
viper.SetConfigName("config")
viper.AddConfigPath(".")
viper.AddConfigPath("/etc/simpbot")
err := viper.ReadInConfig()
if err != nil {
log.Fatalf("Fatal error config file: %v \n", err)