behaviourBuilder
This commit is contained in:
parent
970e53304c
commit
22cdf9ae20
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue