Keybase Bot API for Rust

Script Keybase Chat in Rust!

This module is a side-project/work in progress and may change or have crashers, but feel free to play with it. As long as you're logged in as a Keybase user, you can use this module to script basic chat commands.

Prerequisites

Make sure to install Keybase.

Hello world

```rust use keybasebotapi::chat;

fn main() { let myusername = "marcopolo"; let channel = chat::ChannelParams { name: format!("{},{}", myusername, "kb_monbot"), ..Default::default() }; let msg = "Hello World";

if let Err(e) = chat::send_msg(&channel, &msg) { println!("Failed to send message: {:?}", e); } } ```

More examples

Look at the examples folder for a full list of examples. Run them with cargo like so: cargo run --example read.