Update README.md
This commit is contained in:
parent
10ba64e7cc
commit
afaa57878b
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ Plugins are callback based and respond to any event sent via the rtm websocket.
|
|||
|
||||
This will print the incoming message json (dict) to the screen where the bot is running.
|
||||
|
||||
Plugins having a method defined as ```catch_all(data)``` will receive ALL events from the websocket. This is useful for learning the names of events and debugging.
|
||||
|
||||
####Outgoing data
|
||||
Plugins can send messages back to any channel, including direct messages. This is done by appending a two item array to the outputs global array. The first item in the array is the channel ID and the second is the message text. Example that writes "hello world" when the plugin is started:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue