mirror of
https://github.com/idanoo/NZCovidBot
synced 2025-07-02 19:52:14 +00:00
Rework to use API instead of CSVs
This commit is contained in:
parent
b73a6b7cae
commit
4937ec7253
13 changed files with 290 additions and 675 deletions
|
@ -24,17 +24,6 @@ func main() {
|
|||
// Fetch slack webhooks
|
||||
nzcovidbot.SlackWebhooks = strings.Split(os.Getenv("SLACK_WEBHOOKS"), ",")
|
||||
|
||||
// Fetch twitter keys
|
||||
nzcovidbot.TwitterCreds = nzcovidbot.TwitterCredentials{
|
||||
ConsumerKey: os.Getenv("TWITTER_CONSUMER_KEY"),
|
||||
ConsumerSecret: os.Getenv("TWITTER_CONSUMER_SECRET"),
|
||||
AccessToken: os.Getenv("TWITTER_ACCESS_TOKEN"),
|
||||
AccessTokenSecret: os.Getenv("TWITTER_ACCESS_TOKEN_SECRET"),
|
||||
}
|
||||
|
||||
// Git repo URL
|
||||
nzcovidbot.Repository = os.Getenv("SOURCE_REPO")
|
||||
|
||||
// Boot up listeners / main loop
|
||||
nzcovidbot.Lesgoooo()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue