Streamplace link chatbot (picpay)

Seja seu próprio chatbot no Streamplace respondendo comandos

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

Steps (5)

Variableurl
Value
https://picpay.me/victoriamdo
Note
URL do picpay
VariabletamanhoUrl
Value
29
Note
[EDITAR] Conte exatamente quantos caracteres a sua URL tem, o valor precisa ser editado aqui e no campo "byteEnd" mais abaixo
Variableuser
Value
Hidden
Note
Nome de usuário do picpay
Conditionbranch
  • If event.commit.record.streamer equals {{self}} - Mensagem foi enviada no próprio canal
  • and event.commit.record.text equals !picpay - Comando
Then

Create a recordAction 1

Target Collection
place.stream.chat.message
Record Template
{
  "createdAt": "{{now}}",
  "facets": [
    {
      "features": [
        {
          "$type": "app.bsky.richtext.facet#link",
          "uri": "{{url}}"
        }
      ],
      "index": {
        "byteEnd": 29,
        "byteStart": 0
      }
    }
  ],
  "reply": {
    "parent": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    },
    "root": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    }
  },
  "streamer": "{{self}}",
  "text": "{{url}} {{user}} (não exibe alertas na live, sem limitação de valor mínimo e aceita pagamento com cartão)"
}