diff --git a/src/main.rs b/src/main.rs index ac36110..c9844b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,13 +11,14 @@ async fn main() -> Result<(), failure::Error> { let config = Config { nickname: Some(gethostname::gethostname().to_str().unwrap().to_owned()), server: Some("irc.ouch.chat".to_owned()), - channels: vec!["#testing".to_owned()], ..Config::default() }; let mut client = Client::from_config(config).await?; client.identify()?; + client.send_join_with_keys::<&str, &str>("#botnet", "fuckyou")?; + let mut stream = client.stream()?; let sender = client.sender();