Changed examples to point to #irc-crate.

This commit is contained in:
Aaron Weiss 2017-06-19 14:46:34 -04:00
parent e5e33e9069
commit 36eeca7db6
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2
4 changed files with 5 additions and 5 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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()

View file

@ -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));
} }
} }