From 0a5162105faf9f0bf83f8623e3d92ee1efbc38f4 Mon Sep 17 00:00:00 2001 From: rmatsuoka <76464810+rmatsuoka@users.noreply.github.com> Date: Wed, 13 Sep 2023 21:38:02 +0900 Subject: [PATCH 1/2] GetTwitterClient --- functions/saba_disambiguator/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/saba_disambiguator/main.go b/functions/saba_disambiguator/main.go index e56529a..0c036d2 100644 --- a/functions/saba_disambiguator/main.go +++ b/functions/saba_disambiguator/main.go @@ -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 { From 6c22d46412b7cd975f0de824df6ef121f5b5ba71 Mon Sep 17 00:00:00 2001 From: rmatsuoka <76464810+rmatsuoka@users.noreply.github.com> Date: Wed, 13 Sep 2023 21:40:24 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E6=A4=9C=E7=B4=A2=E3=83=AF=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=8C=E5=A4=89=E3=82=8F=E3=81=A3=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/saba_disambiguator/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/saba_disambiguator/main.go b/functions/saba_disambiguator/main.go index 0c036d2..95644df 100644 --- a/functions/saba_disambiguator/main.go +++ b/functions/saba_disambiguator/main.go @@ -78,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 }