Add support for multiple webhooks

This commit is contained in:
Daniel Mason 2021-09-02 14:56:36 +12:00
parent d43fe6afbe
commit b4a4ce6cb2
Signed by: idanoo
GPG key ID: 387387CDBC02F132
3 changed files with 11 additions and 9 deletions

View file

@ -21,8 +21,8 @@ func main() {
// Fetch discord webhooks
nzcovidbot.DiscordWebhooks = strings.Split(os.Getenv("DISCORD_WEBHOOKS"), ",")
// Fetch slack webhook
nzcovidbot.SlackWebhook = os.Getenv("SLACK_WEBHOOK")
// Fetch slack webhooks
nzcovidbot.SlackWebhooks = strings.Split(os.Getenv("SLACK_WEBHOOKS"), ",")
// Fetch twitter keys
nzcovidbot.TwitterCreds = nzcovidbot.TwitterCredentials{