Skip to content

Commit

Permalink
Merge pull request #255 from lufia/gettwitterclient
Browse files Browse the repository at this point in the history
Gettwitterclient を行う
  • Loading branch information
lufia authored Sep 13, 2023
2 parents 461cded + 6c22d46 commit f57ebcf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions functions/saba_disambiguator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ func DoDisambiguate() error {
Region: aws.String(config.Region),
})

client := twitter2.NewClient(config.TwitterConfig.ParameterStoreNameBearerToken)
client, err := sabadisambiguator.GetTwitterClient(svc, *config)
if err != nil {
return err
}

slackConfig, err := getSlackConfig(svc, *config)
if err != nil {
Expand All @@ -75,7 +78,7 @@ func DoDisambiguate() error {
if err != nil {
return err
}
query := "mackerel lang:ja exclude:retweets"
query := "mackerel lang:ja -is:retweet"
if config.Query != "" {
query = config.Query
}
Expand Down

0 comments on commit f57ebcf

Please sign in to comment.