madhouse_steve_tmi 0.2.0

A Twitch Messaging Interface client
Documentation

Connects to and allows communication with the Twitch Messaging Interface

Basic usage:

use madhouse_steve_tmi::Tmi;

let oauth_token = String::from("oauth:some_token_here");
let nick = String::from("MadSteveBot");
let rooms = vec![String::from("MadhouseSteve")];
let mut tmi = Tmi::new(oauth_token, nick, rooms);
let (join_handle, receiver) = tmi.start();
loop {
let msg = receiver.recv();
if msg.is_err() {
break;
}

let msg = msg.unwrap();
// Do something with the message here
}

join_handle.join().unwrap();