23 lines
524 B
Rust
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);
|
|
}
|
|
}
|
|
}
|
|
}
|