small demon, a familiar of a witch. imp is a set of bot creating utilities built on top of libcwtch-rs
Go to file
Sarah Jamie Lewis 3a7a5c3437 Enable Groups, Automate Experiment 2022-04-27 15:40:17 -07:00
src Enable Groups, Automate Experiment 2022-04-27 15:40:17 -07:00
.gitignore initial import of imp bot framework from update_bot 2022-04-11 22:56:12 -07:00
Cargo.toml First cut of canonical events 2022-04-26 16:19:28 -07:00
LICENSE license 2022-04-11 22:57:27 -07:00
README.md initial import of imp bot framework from update_bot 2022-04-11 22:56:12 -07:00
imp.jpg initial import of imp bot framework from update_bot 2022-04-11 22:56:12 -07:00
imp_color.jpg initial import of imp bot framework from update_bot 2022-04-11 22:56:12 -07:00
imp_details.txt initial import of imp bot framework from update_bot 2022-04-11 22:56:12 -07:00
rustfmt.toml First cut of canonical events 2022-04-26 16:19:28 -07:00

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