Skip to main content
Corvus Connection

Shout out every live teammate in parallel

Expert
On a mod command, find your live team members and shout each one out concurrently.
On Chat CommandoutcommandargsargCountusermessageTwitch: Live Team MembersinoutliveMemberIdsliveMemberLoginsliveCountFor Each (Parallel)insourcebodyitemcompletedSend Chat MessageintextoutReturnin
Graph structure (text alternative)

Trigger: onChatCommand

Nodes:

  • On Chat Command (entry.onChatCommand)
  • Twitch: Live Team Members (twitch.filterTeamMembers)
  • For Each (Parallel) (flow.forEachParallel)
  • Send Chat Message (action.sendChat)
  • Return (flow.return)

Connections:

  • On Chat Command.out → Twitch: Live Team Members.in
  • Twitch: Live Team Members.out → For Each (Parallel).in
  • Twitch: Live Team Members.liveMemberLogins → For Each (Parallel).source
  • For Each (Parallel).body → Send Chat Message.in
  • For Each (Parallel).item → Send Chat Message.text
  • For Each (Parallel).completed → Return.in

Walkthrough

Shout out every live teammate at once.

How it works

  1. On Command fires on !shoutteam (moderator-only).
  2. Twitch: Filter Team Members returns just the members of your team who are currently live.
  3. For Each (Parallel) runs its body for every live login concurrently, up to 4 at a time (maxDegreeOfParallelism).
  4. Send Chat Message shouts each teammate; once all are done, completed ends the flow.

Unlike a plain For Each, the parallel version fans the shout-outs out simultaneously. That helps when the list is long. See For Each (Parallel) and Filter Team Members.

Uses these nodes