diff options
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 22c5530..8c1d503 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,8 +40,6 @@ struct WikiQuery { } fn main() { - let q: WikiQueryResponse = serde_json::from_str("{\"batchcomplete\":\"\",\"query\":{\"pages\":{\"18123\":{\"pageid\":18123,\"ns\":0,\"title\":\"Lisp machine\",\"extract\":\"Lisp machines are general-purpose computers designed to efficiently run Lisp as their main software language, usually through hardware support. They are an example of a high-level language computer architecture, and in a sense, they were the first commercial single-user workstations. Despite being modest in number (perhaps 7,000 units total as of 1988), Lisp machines commercially pioneered many now-commonplace technologies \\u2013 including effective garbage collection, laser printing, windowing systems, computer mice, high-resolution bit-mapped graphics, computer graphic rendering, and networking innovations like Chaosnet. Several companies built and sold Lisp Machines in the 1980s: Symbolics (3600, 3640, XL1200, MacIvory, and other models), Lisp Machines Incorporated (LMI Lambda), Texas Instruments (Explorer and MicroExplorer), and Xerox (Interlisp-D workstations). The operating systems were written in Lisp Machine Lisp, InterLisp (Xerox), and later partly in Common Lisp.\"}}}}").unwrap(); - println!("{:?}", q); let config = Config { nickname: Some(format!("lidavidm_prime")), server: Some(format!("irc.freenode.net")), @@ -57,8 +55,6 @@ fn main() { if let Some(msg) = message.suffix { if msg.starts_with("!wiki") { let article = msg[5..].trim(); - let response = format!("Looking up \"{}\" on Wikipedia for you...", article); - server.send_privmsg(&message.args[0], &response).unwrap(); let mut client = Client::new(); let mut res = client |