From 671b2f8a436eb449117e65dcbd8f9830fc161bc4 Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 17 Jul 2022 18:21:06 -0400 Subject: [PATCH] check /etc/nunbot --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 501ddc9..882a955 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,10 @@ var GitCommit string func main() { conf, err := mbl.LoadMatrixClientConfig("config.yaml") if err != nil { - panic(err) + conf, err = mbl.LoadMatrixClientConfig("/etc/config.yaml") + if err != nil { + panic(err) + } } store := mbl.NewLazyMemStore(conf.Statefile) matrixClient, err := mbl.NewMatrixClient(conf, store)