[MODELO] Streamplace pix chatbot

[Copie essa automação para utilizar] Seja seu próprio chatbot no Streamplace respondendo comando !pix

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

Steps (3)

VariablepixUrl
Value
Hidden
Note
URL para doações via Pix (como Pixie e Livepix)
Conditionbranch
  • If event.commit.record.streamer equals {{self}} - Mensagem foi enviada no próprio canal
  • and event.commit.record.text equals !pix - Comando do pix
Then

Create a recordAction 1

Target Collection
place.stream.chat.message
Record Template
{
  "createdAt": "{{now}}",
  "facets": [
    {
      "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": "{{pixUrl}}"
}