[−][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 = 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();
Structs
DecodedMessage | The parsed content of a TMI message |
Tmi | The structure to handle the Twitch Messaging Interface |