Changed examples to point to #irc-crate
.
This commit is contained in:
parent
e5e33e9069
commit
36eeca7db6
4 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ fn main() {
|
||||||
let config = Config {
|
let config = Config {
|
||||||
nickname: Some("pickles".to_owned()),
|
nickname: Some("pickles".to_owned()),
|
||||||
server: Some("irc.fyrechat.net".to_owned()),
|
server: Some("irc.fyrechat.net".to_owned()),
|
||||||
channels: Some(vec!["#vana".to_owned()]),
|
channels: Some(vec!["#irc-crate".to_owned()]),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let server = IrcServer::from_config(config).unwrap();
|
let server = IrcServer::from_config(config).unwrap();
|
||||||
|
|
|
@ -8,7 +8,7 @@ fn main() {
|
||||||
nickname: Some("pickles".to_owned()),
|
nickname: Some("pickles".to_owned()),
|
||||||
alt_nicks: Some(vec!["bananas".to_owned(), "apples".to_owned()]),
|
alt_nicks: Some(vec!["bananas".to_owned(), "apples".to_owned()]),
|
||||||
server: Some("irc.fyrechat.net".to_owned()),
|
server: Some("irc.fyrechat.net".to_owned()),
|
||||||
channels: Some(vec!["#vana".to_owned()]),
|
channels: Some(vec!["#irc-crate".to_owned()]),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let server = IrcServer::from_config(config).unwrap();
|
let server = IrcServer::from_config(config).unwrap();
|
||||||
|
|
|
@ -7,7 +7,7 @@ fn main() {
|
||||||
let config = Config {
|
let config = Config {
|
||||||
nickname: Some("pickles".to_owned()),
|
nickname: Some("pickles".to_owned()),
|
||||||
server: Some("irc.fyrechat.net".to_owned()),
|
server: Some("irc.fyrechat.net".to_owned()),
|
||||||
channels: Some(vec!["#vana".to_owned()]),
|
channels: Some(vec!["#irc-crate".to_owned()]),
|
||||||
port: Some(6697),
|
port: Some(6697),
|
||||||
use_ssl: Some(true),
|
use_ssl: Some(true),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
|
@ -9,7 +9,7 @@ fn main() {
|
||||||
let config = Config {
|
let config = Config {
|
||||||
nickname: Some("pickles".to_owned()),
|
nickname: Some("pickles".to_owned()),
|
||||||
server: Some("irc.fyrechat.net".to_owned()),
|
server: Some("irc.fyrechat.net".to_owned()),
|
||||||
channels: Some(vec!["#vana".to_owned()]),
|
channels: Some(vec!["#irc-crate".to_owned()]),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let server = IrcServer::from_config(config).unwrap();
|
let server = IrcServer::from_config(config).unwrap();
|
||||||
|
@ -20,7 +20,7 @@ fn main() {
|
||||||
server2.iter().map(|m| print!("{}", m.unwrap())).count();
|
server2.iter().map(|m| print!("{}", m.unwrap())).count();
|
||||||
});
|
});
|
||||||
loop {
|
loop {
|
||||||
server.send_privmsg("#vana", "TWEET TWEET").unwrap();
|
server.send_privmsg("#irc-crate", "TWEET TWEET").unwrap();
|
||||||
sleep(Duration::new(10, 0));
|
sleep(Duration::new(10, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue