circe/examples/basic-config/src/main.rs
2021-11-13 11:47:42 -06:00

23 lines
524 B
Rust

use circe::{commands::Command, Client, Config};
fn main() -> Result<(), std::io::Error> {
let config = Config::new(
vec!["#main", "#no-normies"],
"karx.xyz",
Some("+B"),
Some("circe"),
6697,
"circe",
);
let mut client = Client::new(config).unwrap();
client.identify().unwrap();
loop {
if let Ok(ref command) = client.read() {
if let Command::OTHER(line) = command {
print!("{}", line);
}
}
}
}