BotAction can execute

This commit is contained in:
ModulatingForce 2024-01-29 02:27:11 -05:00
commit 0472e56856
2 changed files with 16 additions and 3 deletions

View file

@ -407,9 +407,10 @@ impl BotInstance
for (_m,acts) in &self.botmodules.botactions {
for a in acts {
if let crate::core::botmodules::BotAction::L(lsnr) = a {
lsnr.execute(self.chat.clone(),msg.clone()).await;
}
// if let crate::core::botmodules::BotAction::L(lsnr) = a {
// lsnr.execute(self.chat.clone(),msg.clone()).await;
// }
a.execute(self.chat.clone(), msg.clone()).await;
}
};