check /etc/nunbot
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
stryan 2022-07-17 18:21:06 -04:00
parent 81ab20e2fa
commit 671b2f8a43

View File

@ -19,9 +19,12 @@ var GitCommit string
func main() {
conf, err := mbl.LoadMatrixClientConfig("config.yaml")
if err != nil {
conf, err = mbl.LoadMatrixClientConfig("/etc/config.yaml")
if err != nil {
panic(err)
}
}
store := mbl.NewLazyMemStore(conf.Statefile)
matrixClient, err := mbl.NewMatrixClient(conf, store)
if err != nil {