# cleverbot.io
[](https://slack.cleverbot.io)
[](https://travis-ci.org/CleverbotIO/rust-cleverbot.io)
[](https://crates.io/crates/cleverbot_io)
[](https://crates.io/crates/cleverbot_io/1.0.0)
[](https://crates.io/crates/cleverbot_io/1.0.0)
A Rust interface for Cleverbot.io.
## Installation
This crate works with Cargo and can be found on crates.io with a `Cargo.toml` like:
```toml
[dependencies]
cleverbot_io = "*"
```
## Usage
```rust
extern crate cleverbot_io;
use cleverbot_io::{Cleverbot};
fn main() {
let api_user = "YOUR_API_USER";
let api_key = "YOUR_API_KEY";
let mut bot = Cleverbot::new(api_user.into(), api_key.into(), None).unwrap();
println!("{}", bot.say("Hello.").unwrap());
let mut carlos = Cleverbot::new(api_user.into(), api_key.into(), Some(String::from("Carlos1"))).unwrap();
println!("{}", carlos.say("Why am I still talking to you?").unwrap());
}
```