mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 14:31:47 +01:00
Teams Notification (#72)
Co-authored-by: Okan Celik <okan.celik@mailbox.org>
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
||||
"github.com/crazy-max/diun/internal/notif/rocketchat"
|
||||
"github.com/crazy-max/diun/internal/notif/slack"
|
||||
"github.com/crazy-max/diun/internal/notif/teams"
|
||||
"github.com/crazy-max/diun/internal/notif/telegram"
|
||||
"github.com/crazy-max/diun/internal/notif/webhook"
|
||||
"github.com/rs/zerolog/log"
|
||||
@@ -49,6 +50,9 @@ func New(config *model.Notif, app model.App, userAgent string) (*Client, error)
|
||||
if config.Slack != nil {
|
||||
c.notifiers = append(c.notifiers, slack.New(config.Slack, app))
|
||||
}
|
||||
if config.Teams != nil {
|
||||
c.notifiers = append(c.notifiers, teams.New(config.Teams, app, userAgent))
|
||||
}
|
||||
if config.Telegram != nil {
|
||||
c.notifiers = append(c.notifiers, telegram.New(config.Telegram, app))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user