Streamplace chatbot (chave pix)

Seja seu próprio chatbot no Streamplace respondendo comandos

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

Steps (4)

Variablechave
Value
[email protected]
Note
Chave Pix de sua escolha
Conditionbranch
  • If event.commit.record.streamer equals {{self}} - Mensagem foi enviada no próprio canal
Then
Conditionbranch
  • If event.commit.record.text equals !chave - Comando
  • or event.commit.record.text equals !chavepix - Comando
  • or event.commit.record.text equals !chavePix - Comando
Then

Create a recordAction 1

Target Collection
place.stream.chat.message
Record Template
{
  "createdAt": "{{now}}",
  "reply": {
    "parent": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    },
    "root": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    }
  },
  "streamer": "{{self}}",
  "text": "Chave pix: {{chave}} (não exibe alertas na live, sem limitação de valor mínimo)"
}