join specific channel
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
blackbeard420 2023-12-28 21:31:27 -05:00
parent 95194d308f
commit 54b29b8e82
Signed by: blackbeard420
GPG Key ID: 88C719E09CDDA4A5

View File

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