mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-02 19:52:14 +00:00
Add support for multiple webhooks
This commit is contained in:
parent
d43fe6afbe
commit
b4a4ce6cb2
3 changed files with 11 additions and 9 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue