macaroni

broadcast

Description:
The broadcast executor is used to broadcast a named message and optional value to command sets and commands that might be listening to broadcast messages.

Parent: execute, then, else

Value (simple form): string specifying the name of the broadcast message
Value (key/value form):

# simple form
- broadcast: (string)

# simple example
- broadcast: fileDeleted

# key/value form
- broadcast: (string, required)
  value: (any, optional)
  scope: (string, optional)

# key/value example
- broadcast: fileDeleted
  value: '{folders.desktop}\favorites.txt'

EXAMPLE

# broadcasts a message to other commands, and hosting application
commands:
- triggers:
  - phrase: open door
  execute:
  - speak: opening door
  - broadcast: door.open

Status: ✅ IMPLEMENTED (caveats: scope not yet functional, acts like global)