From 3234ffb19c815dc9bc9d4aab51cc948774ed074b Mon Sep 17 00:00:00 2001 From: walnuts1018 Date: Wed, 3 Apr 2024 20:09:03 +0900 Subject: [PATCH] =?UTF-8?q?@Riaruayu=E3=81=95=E3=82=93=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slack/slack.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/slack/slack.go b/slack/slack.go index 1e246d8..ed74fe7 100644 --- a/slack/slack.go +++ b/slack/slack.go @@ -361,6 +361,11 @@ func (c *Client) HandleSlackEvents(ctx context.Context) { continue } + if observTarget.year == "2024" { + // @Riaruayuさんを追加 + mcgMembers["UQYG1JA95"] = struct{}{} + } + if _, ok := mcgMembers[ev.User]; !ok { slog.Info("Join event from non-MCG member, skipping", "user", ev.User) continue @@ -398,6 +403,11 @@ func (c *Client) HandleSlackEvents(ctx context.Context) { continue } + if observTarget.year == "2024" { + // @Riaruayuさんを追加 + mcgMembers["UQYG1JA95"] = struct{}{} + } + channels, err := c.GetPrefixedChannels(ctx, fmt.Sprintf("%s-", observTarget.year)) if err != nil { slog.Error("Error getting prefixed channels", "error", err)