add noowner and federation

This commit is contained in:
Aine
2022-08-22 22:08:32 +03:00
parent 564cd82c6b
commit 0decd4fad6
9 changed files with 129 additions and 13 deletions

View File

@@ -81,7 +81,7 @@ func initBot(cfg *config.Config) {
// nolint // Fatal = panic, not os.Exit()
log.Fatal("cannot initialize matrix bot: %v", err)
}
mxb = bot.New(lp, mxlog, cfg.Prefix, cfg.Domain)
mxb = bot.New(lp, mxlog, cfg.Prefix, cfg.Domain, cfg.NoOwner, cfg.Federation)
log.Debug("bot has been created")
}