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
Steps (4)
- If
event.commit.record.streamerequals{{self}}- Chat message was sent in my channel - and
event.commit.record.textequals!song- Song command
Then
SongActor- Fetches current song from teal.fm- Lookup
at://{{self}}/fm.teal.actor.status/self
- If
SongActor.foundequalstrue
Then
Create a recordAction 1
- Target Collection

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