Streamplace pix chatbot

Meu próprio chatbot no Streamplace respondendo comando !pix [duplique o modelo desativado no meu perfil no lugar desse para utilizar]

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

Steps (4)

VariablePixie
Value
Hidden
Note
URL para doações via Pix com Pixie
Conditionbranch
  • If event.commit.record.streamer equals {{self}} - Mensagem foi enviada no meu canal
Then
Conditionbranch
  • If event.commit.record.text equals !pix - Comando do pix
  • or event.commit.record.text equals !donate - Comando de donate
Then

Create a recordAction 1

Target Collection
place.stream.chat.message
Record Template
{
  "createdAt": "{{now}}",
  "facets": [
    {
      "features": [
        {
          "$type": "app.bsky.richtext.facet#link",
          "uri": "{{Pixie}}"
        }
      ],
      "index": {
        "byteEnd": 26,
        "byteStart": 0
      }
    }
  ],
  "reply": {
    "parent": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    },
    "root": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    }
  },
  "streamer": "{{self}}",
  "text": "{{Pixie}}"
}