ExecBodyParams
This commit is contained in:
parent
616d1f564f
commit
203f6af869
6 changed files with 124 additions and 101 deletions
src/core
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue