From 6b3987d55ae9c20e2287e7ef34bbb69b04fd702d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Tue, 8 Oct 2024 13:17:08 +0200 Subject: [PATCH] add support for multiple slack integrations --- lib/tasks/uvobot.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/uvobot.rake b/lib/tasks/uvobot.rake index 0f9ac5b..85d2aca 100644 --- a/lib/tasks/uvobot.rake +++ b/lib/tasks/uvobot.rake @@ -7,7 +7,9 @@ namespace :uvobot do notifiers = [] if ENV['UVOBOT_SLACK_WEBHOOK'] - notifiers << Uvobot::Notifications::SlackNotifier.new(ENV.fetch('UVOBOT_SLACK_WEBHOOK')) + ENV.fetch('UVOBOT_SLACK_WEBHOOK').split(',').each do |url| + notifiers << Uvobot::Notifications::SlackNotifier.new(url) + end end if ENV['DISCOURSE_URL']