Streamplace chat rules

Be your own Streamplace chatbot replying to !rules with a your chat rules

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

Steps (3)

Variablerules
Value
Hidden
Note
Chat rules
Conditionbranch
  • If event.commit.record.streamer equals {{self}} - Chat message was sent in my channel
  • and event.commit.record.text equals !rules - Command to show chat rules
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": "{{rules}}"
}