Add slack webhook integration

This commit is contained in:
Daniel Mason 2021-09-01 23:20:47 +12:00
parent c109f08589
commit 1718cc052d
Signed by: idanoo
GPG key ID: 387387CDBC02F132
9 changed files with 107 additions and 5 deletions

View file

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