async botnotif

This commit is contained in:
ModulatingForce 2024-04-02 14:17:28 -04:00
commit e3718688a7
4 changed files with 213 additions and 40 deletions

View file

@ -169,6 +169,7 @@ impl BotInstance {
match message {
ServerMessage::Notice(msg) => {
dbg!("NOTICE TRIGGERED",msg.clone());
botlog::notice(
format!("NOTICE : (#{:?}) {}", msg.channel_login, msg.message_text)
.as_str(),
@ -536,6 +537,8 @@ impl BotInstance {
Some(msg),
);
dbg!("Running botcommand");
let a = Arc::clone(&bot);
c.execute(ExecBodyParams {
bot : a,