Streamplace song chatbot

Be your own Streamplace chatbot to say which song you are listening to (works with Rocksky)

place.stream.chat.message
Lexicon
place.stream.chat.message
Operations
Record created

Steps (4)

Conditiongate
  • Continue only if event.commit.record.streamer equals {{self}} - Chat message was sent in my channel
  • and event.commit.record.text equals !song - Song command
Fetch recordSongActor- Fetches current song from Rocksky
Lookup
at://{{self}}/app.rocksky.actor.status/self
Conditiongate
  • Continue only if SongActor.found equals true

Create a recordAction 1action1- Post the current song name in my stream chat

Target Collection
place.stream.chat.message
Record Template
{
  "text": "Now playing: '{{SongActor.record.track.name}}' - {{SongActor.record.track.artist}} ({{SongActor.record.track.album}})",
  "$type": "place.stream.chat.message",
  "streamer": "{{self}}",
  "createdAt": "{{now}}"
}