diff --git a/modules/notification/notification.go b/modules/notification/notification.go index e6f305e705..fba5f54f10 100644 --- a/modules/notification/notification.go +++ b/modules/notification/notification.go @@ -41,7 +41,9 @@ func NewContext() { RegisterNotifier(webhook.NewNotifier()) RegisterNotifier(action.NewNotifier()) RegisterNotifier(mirror.NewNotifier()) - RegisterNotifier(bots.NewNotifier()) + if setting.Bots.Enabled { + RegisterNotifier(bots.NewNotifier()) + } } // NotifyNewWikiPage notifies creating new wiki pages to notifiers