diff --git a/src/main.rs b/src/main.rs index d306371..de2a1c8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ use serde_json; use libcwtch; use libcwtch::structs::*; use libcwtch::CwtchLib; -use crate::imp::{Behaviour, Imp}; +use crate::imp::{Behaviour, Imp, BehaviourBuilder}; const DIST_DIR: &str = "cwtch_dist"; const BOT_HOME: &str = "~/.cwtch/bots/update_bot"; @@ -69,7 +69,7 @@ fn main() { } let mut update_bot = UpdateBot::new(); - let behaviour: Behaviour = Behaviour::new_default_acceptor(BOT_NAME.to_string(), "build_bot.png".to_string()); + let behaviour: Behaviour = BehaviourBuilder::new().name(BOT_NAME.to_string()).profile_pic_path("build_bot.png".to_string()).build(); let event_loop_handle = thread::spawn(move || { let mut bot = Imp::spawn(behaviour, PASSWORD.to_string(), BOT_HOME.to_string());