Module yobot::slackhandler [] [src]

SlackHandler handles all the interactions with the slack API. It connects a persistent socket to the Real Time API and listens for all the events. Events are communicated back to users of this method by a closure given on the initializer.

Example

let mut handler = SlackHandler::new(|message, _| { println!("Yo {}", message); });
handler.login_and_run(token);

Structs

SlackHandler