Skip to main content

Streamplace command donate goal

Be your own Streamplace chatbot replying to !goal

place.stream.chat.message
Lexicon
place.stream.chat.message
Operations
Record created
Watched repos
All repos

Steps (4)

Variablegoal
Value
Hidden
Note
Text the "bot" will reply
Conditionbranch
  • If event.commit.record.streamer equals {{self}} - Chat message was sent in my channel
Then
Conditionbranch
  • If event.commit.record.text equals !goal - Command to show the commands list
Then

Create a recordAction 1

Target Collection
place.stream.chat.message
Record Template
{
  "$type": "place.stream.chat.message",
  "createdAt": "{{now}}",
  "reply": {
    "$type": "place.stream.chat.message#replyRef",
    "parent": {
      "$type": "com.atproto.repo.strongRef",
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    },
    "root": {
      "$type": "com.atproto.repo.strongRef",
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    }
  },
  "streamer": "{{self}}",
  "text": "{{goal}}"
}
$type is set to the target collection when the record is written.