execbodyparams passed to chat()

This commit is contained in:
ModulatingForce 2024-03-24 18:14:08 -04:00
commit 958aeea48e
7 changed files with 82 additions and 69 deletions

View file

@ -412,10 +412,20 @@ impl BotInstance {
let botlock = bot.read().await;
let outstr =
format!("sadg Module is disabled : {:?}",a);
let params = ExecBodyParams {
bot : Arc::clone(&bot),
msg : (*msg).clone(),
parent_act : Arc::clone(&act_clone),
};
botlock.botmgrs.chat.say_in_reply_to(
msg,
outstr,
c.module.clone()).await;
// c.module.clone()
params,
).await;
}
return;
@ -454,10 +464,20 @@ impl BotInstance {
let botlock = bot.read().await;
let outstr =
"o7 a Mod. I kneel to serve! pepeKneel ".to_string();
let params = ExecBodyParams {
bot : Arc::clone(&bot),
msg : (*msg).clone(),
parent_act : Arc::clone(&act_clone),
};
botlock.botmgrs.chat.say_in_reply_to(
msg,
outstr,
c.module.clone(),
// c.module.clone(),
params
).await;
}
}