@vicwalker.dev.br

Streamplace pix chatbot

Seja seu próprio chatbot no Streamplace respondendo comando !pix

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

Conditions

  • streamer equals {{self}} - Mensagem foi enviada no próprio canal
  • text equals !pix - Comando do pix

Actions (1)

Create a recordAction 1- Responde no chat o link para enviar pix **Atenção: é preciso ajustar o valor de "byteEnd" de acordo com o tamanho da sua URL, conte quantos caracteres sua URL tem**

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