Streamplace song chatbot (teal.fm)
Be your own Streamplace chatbot to say which song you are listening to (works with teal.fm)
place.stream.chat.message- Lexicon

place.stream.chat.message- Operations
- Record created
Conditions
streamerequals{{self}}- Chat message was sent in my channeltextequals!song- Song command
Data Sources (1)
SongActor— Fetches current song from teal.fm- Lookup
at://{{self}}/fm.teal.alpha.actor.status/self
- Continue only if the record is found
Actions (1)
Create a recordAction 1- Post the current song name in my stream chat
- Target Collection

place.stream.chat.message- Record Template
{ "text": "Now playing: '{{SongActor.record.item.trackName}}' - {{SongActor.record.item.artists.0.artistName}} ({{SongActor.record.item.releaseName}})", "$type": "place.stream.chat.message", "reply": { "root": { "cid": "{{event.commit.cid}}", "uri": "{{event.uri}}" }, "parent": { "cid": "{{event.commit.cid}}", "uri": "{{event.uri}}" } }, "streamer": "{{self}}", "createdAt": "{{now}}" }