[−][src]Crate madhouse_steve_tmi
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 = String::from(vec!["MadhouseSteve"]); let 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 } t.join().unwrap();
Structs
DecodedMessage | The parsed content of a TMI message |
Tmi | The structure to handle the Twitch Messaging Interface |