From afaa57878b4d6053fd83bc1682b15a77dbc2162e Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Tue, 18 Nov 2014 16:30:04 -0800 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6afa2b9..fca006f 100644 --- a/README.md +++ b/README.md @@ -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: