From 1a640e1be22ac017c29c4983e749b9042225711c Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Wed, 21 Aug 2024 22:23:45 -0400 Subject: [PATCH] all: remove stale todos --- config.go | 1 - tmi.go | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config.go b/config.go index 5fceeb7..617b071 100644 --- a/config.go +++ b/config.go @@ -220,7 +220,6 @@ func (robo *Robot) SetTwitchChannels(ctx context.Context, global Global, channel effects := pick.New(pick.FromMap(mergemaps(global.Effects, ch.Effects))) var ign, mod map[string]bool for _, p := range ch.Privileges { - // TODO(zeph): resolve user ids switch { case strings.EqualFold(p.Level, "ignore"): if ign == nil { diff --git a/tmi.go b/tmi.go index 9b7ed43..8760654 100644 --- a/tmi.go +++ b/tmi.go @@ -41,15 +41,14 @@ func (robo *Robot) tmiLoop(ctx context.Context, group *errgroup.Group, send chan case "GLOBALUSERSTATE": slog.InfoContext(ctx, "connected to TMI", slog.String("GLOBALUSERSTATE", msg.Tags)) case "376": // End MOTD - go robo.join(ctx, send) + go robo.joinTwitch(ctx, send) } } } } -func (robo *Robot) join(ctx context.Context, send chan<- *tmi.Message) { +func (robo *Robot) joinTwitch(ctx context.Context, send chan<- *tmi.Message) { ls := make([]string, 0, len(robo.channels)) - // TODO(zeph): this is going to join channels that aren't twitch for _, ch := range robo.channels { ls = append(ls, ch.Name) }