Skip to content

Commit

Permalink
all: remove stale todos
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrtronium committed Aug 22, 2024
1 parent 73b5a08 commit 1a640e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 2 additions & 3 deletions tmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1a640e1

Please sign in to comment.