From 027fe71a33f2c9954cb6c0b38bd8a862af2e3cdd Mon Sep 17 00:00:00 2001 From: Sqrt10-31622776 Date: Tue, 21 May 2024 16:07:23 +0900 Subject: [PATCH 1/2] twitter stamp for messages including 'x' --- http-local-fwd | 1 + sushi-bot/index.ts | 6 ++++++ 2 files changed, 7 insertions(+) create mode 160000 http-local-fwd diff --git a/http-local-fwd b/http-local-fwd new file mode 160000 index 00000000..76d56412 --- /dev/null +++ b/http-local-fwd @@ -0,0 +1 @@ +Subproject commit 76d5641211f4d31a4ba04c661e312d2962b3d50c diff --git a/sushi-bot/index.ts b/sushi-bot/index.ts index 19f95da3..05cac782 100644 --- a/sushi-bot/index.ts +++ b/sushi-bot/index.ts @@ -357,6 +357,12 @@ export default async function ({eventClient, webClient: slack}: SlackInterface) if (allText.match(/twitter(?!\.com)/i)) { slack.reactions.add({name: 'x-logo', channel, timestamp}) } + } + + { + if (allText.match(/\bx(?!\.com)\b/i)) { + slack.reactions.add({name: 'twitter', channel, timestamp}) + } } }); From 727feb466b896ec42a5dc5b459244b8275e470cb Mon Sep 17 00:00:00 2001 From: Sqrt10-31622776 Date: Tue, 21 May 2024 19:45:03 +0900 Subject: [PATCH 2/2] deleted http-local-fwd --- http-local-fwd | 1 - 1 file changed, 1 deletion(-) delete mode 160000 http-local-fwd diff --git a/http-local-fwd b/http-local-fwd deleted file mode 160000 index 76d56412..00000000 --- a/http-local-fwd +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 76d5641211f4d31a4ba04c661e312d2962b3d50c