behaviourBuilder

This commit is contained in:
Dan Ballard 2022-04-26 14:29:00 -07:00
parent 970e53304c
commit 22cdf9ae20
1 changed files with 2 additions and 2 deletions

View File

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