check /etc/nunbot
This commit is contained in:
parent
81ab20e2fa
commit
671b2f8a43
3
main.go
3
main.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user