Streamplace command list chatbot

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

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

Steps (3)

Conditiongate
  • Continue only if event.commit.record.streamer equals {{self}} - Mensagem foi enviada no próprio canal
  • and event.commit.record.text equals !commands - Comando para lista de comandos
Variablecommands
Value
Comandos: !pix !song !radio
Note
Comandos disponíveis pro "chatbot" **Editar o valor preenchido com exemplo**

Create a recordAction 1action1- Responde no chat a lista de comandos

Target Collection
place.stream.chat.message
Record Template
{
  "text": "{{commands}}",
  "$type": "place.stream.chat.message",
  "reply": {
    "root": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    },
    "parent": {
      "cid": "{{event.commit.cid}}",
      "uri": "{{event.uri}}"
    }
  },
  "streamer": "{{self}}",
  "createdAt": "{{now}}"
}