mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-03 04:02: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
|
@ -22,6 +22,10 @@ func postToTwitter() {
|
|||
return
|
||||
}
|
||||
|
||||
if len(updatedLocations.Locations) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
config := oauth1.NewConfig(TwitterCreds.ConsumerKey, TwitterCreds.ConsumerSecret)
|
||||
token := oauth1.NewToken(TwitterCreds.AccessToken, TwitterCreds.AccessTokenSecret)
|
||||
httpClient := config.Client(oauth1.NoContext, token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue