Streamplace link chatbot (wise)

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://wise.com/pay/me/victoriam3984
Note
[EDITAR] URL, precisa incluir https://
VariabletamanhoUrl
Value
37
Note
[EDITAR] Conte exatamente quantos caracteres a sua URL tem, o valor precisa ser editado aqui e no campo "byteEnd" mais abaixo
Conditionbranch
  • If event.commit.record.streamer equals {{self}} - Mensagem foi enviada no próprio canal
Then
Conditionbranch
  • If event.commit.record.text equals !wise - Comando
  • or event.commit.record.text equals !transferwise - 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": 37,
        "byteStart": 0
      }
    }
  ],
  "reply": {
    "parent": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    },
    "root": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    }
  },
  "streamer": "{{self}}",
  "text": "{{url}} (no stream alerts)"
}