add normal config spot
This commit is contained in:
parent
31f3af0403
commit
72b8192f3b
1
main.go
1
main.go
@ -26,6 +26,7 @@ var Statefile string
|
|||||||
func main() {
|
func main() {
|
||||||
viper.SetConfigName("config")
|
viper.SetConfigName("config")
|
||||||
viper.AddConfigPath(".")
|
viper.AddConfigPath(".")
|
||||||
|
viper.AddConfigPath("/etc/simpbot")
|
||||||
err := viper.ReadInConfig()
|
err := viper.ReadInConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Fatal error config file: %v \n", err)
|
log.Fatalf("Fatal error config file: %v \n", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user