small demon, a familiar of a witch. imp is a set of bot creating utilities built on top of libcwtch-rs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dan Ballard 7c92039140 add examples to README 3 weeks ago
src break out behaviour 4 weeks ago
.gitignore initial import of imp bot framework from update_bot 2 months ago
Cargo.toml break out behaviour 4 weeks ago
LICENSE license 2 months ago
README.md add examples to README 3 weeks ago
imp.jpg initial import of imp bot framework from update_bot 2 months ago
imp_color.jpg initial import of imp bot framework from update_bot 2 months ago
imp_details.txt initial import of imp bot framework from update_bot 2 months ago
rustfmt.toml First cut of canonical events 1 month ago

README.md

imp

small demon, a familiar of a witch

imp is a set of bot creating utilities built on top of libcwtch-rs

It is in the very early prototype stage with one prototype use in the Cwtch update bot

Usage

Start with creating a Behaviour struct and populating it with your desired set of bot behaviours, then imp::spawn your bot with the behaviour.

Define a struct fulfilling the imp::EventHandler trait with all your custom event handling code.

Finally, run the imp my_imp.event_loop(Box::new(custom_event_handler));

Examples