feat: Add notification templates (#2)
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
b9902f0623
commit
632da28954
11 changed files with 154 additions and 67 deletions
2
main.go
2
main.go
|
@ -84,7 +84,7 @@ func main() {
|
|||
client := NewFlexpoolClient()
|
||||
|
||||
// Notifications
|
||||
notifier, err := NewTelegramNotifier(&config.TelegramConfig)
|
||||
notifier, err := NewTelegramNotifier(&config.TelegramConfig, &config.NotificationTemplates)
|
||||
if err != nil {
|
||||
log.Fatalf("Could not create notifier: %v", err)
|
||||
}
|
||||
|
|
Reference in a new issue