Skip to content

Commit

Permalink
@Riaruayuさんを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Apr 3, 2024
1 parent f7695a9 commit 3234ffb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3234ffb

Please sign in to comment.