ExecBodyParams

This commit is contained in:
ModulatingForce 2024-03-24 14:38:09 -04:00
commit 203f6af869
6 changed files with 124 additions and 101 deletions

View file

@ -46,6 +46,7 @@ pub enum ChangeResult {
//simplifying from enum to struct
pub struct Channel(pub String);
use super::bot_actions::ExecBodyParams;
use super::botmodules::StatusType;
#[derive(Clone)]
@ -452,7 +453,8 @@ impl BotInstance {
);
let a = Arc::clone(&bot);
c.execute(a, msg.clone()).await;
// c.execute(a, msg.clone()).await;
c.execute(ExecBodyParams { bot : a, msg : msg.clone() }).await;
botlog::trace(
"exit out of execution",
@ -498,7 +500,8 @@ impl BotInstance {
} else {
let a = Arc::clone(&bot);
l.execute(a, msg.clone()).await;
// l.execute(a, msg.clone()).await;
l.execute(ExecBodyParams { bot : a, msg : msg.clone()} ).await;
}
}