Streamplace radio chatbot (atradio.fm)

Be your own Streamplace chatbot to say which radio you are listening to (works with atradio.fm)

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

Conditions

  • streamer equals {{self}} - Chat message was sent in my channel
  • text equals !radio - Radio command

Data Sources (1)

Record lookupRadioActor— Fetches current radio from atradio.fm
Lookup
at://{{self}}/fm.atradio.actor.status/self
  • Continue only if the record is found

Actions (1)

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

Target Collection
place.stream.chat.message
Record Template
{
  "text": "Radio playing: '{{RadioActor.record.station.name}}' - from {{RadioActor.record.station.country}}",
  "$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}}"
}