mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-02 19:52:14 +00:00
Add slack webhook integration
This commit is contained in:
parent
c109f08589
commit
1718cc052d
9 changed files with 107 additions and 5 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue