Skip to content

Common Options

Amy edited this page Dec 15, 2023 · 1 revision

These options can be used with any of the Trigger Types.

Strict (True/False)

Defaults to false, a Strict trigger will require the full message to match rather than checking part of the message. For example, if you have "Apple" as a trigger word, a strict trigger will require a user to say "Apple" and nothing else, while a non-strict trigger will send the response even if the user says "I have an apple"

ExampleResponse:
  Type: TEXT
  Response: "This is the example response message!"
  Triggers:
  - "This is a trigger"
  Strict: true

Reply (True/False)

Defaults to false, if the response should be sent as a reply to the user who triggered it or not.

ExampleResponse:
  Type: TEXT
  Response: "This is the example response message!"
  Triggers:
  - "This is a trigger"
  Reply: true

Cooldown

Defaults to 0, A cooldown in seconds for how much time must pass before the trigger is triggered again.

ExampleResponse:
  Type: TEXT
  Response: "This is the example response message!"
  Triggers:
  - "This is a trigger"
  Cooldown: 30

Role

The ID of a role a user must have to trigger the response. Users without the role will not trigger the response.

ExampleResponse:
  Type: TEXT
  Response: "This is the example response message!"
  Triggers:
  - "This is a trigger"
  Role: 695804381215588392

MissingRole

The ID of a role a user must NOT have to trigger the response. Users with the role will not trigger the response.

ExampleResponse:
  Type: TEXT
  Response: "This is the example response message!"
  Triggers:
  - "This is a trigger"
  MissingRole: 695804381215588392