This commit is contained in:
parent
95194d308f
commit
54b29b8e82
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user