say channel case insensitive

This commit is contained in:
ModulatingForce 2024-03-23 20:06:45 -04:00
commit 098f16ce87
3 changed files with 16 additions and 26 deletions

View file

@ -181,6 +181,7 @@ impl BotInstance {
Some("BotInstance > runner()".to_string()),
None,
);
Log::flush();
}
ServerMessage::Privmsg(msg) => {
@ -204,6 +205,7 @@ impl BotInstance {
Some("BotInstance > runner()".to_string()),
Some(&msg),
);
Log::flush();
BotInstance::listener_main_prvmsg(Arc::clone(&bot), &msg).await;
}
@ -213,6 +215,7 @@ impl BotInstance {
Some("BotInstance > runner()".to_string()),
None,
);
Log::flush();
}
ServerMessage::Join(msg) => {
botlog::notice(
@ -220,6 +223,7 @@ impl BotInstance {
Some("BotInstance > runner()".to_string()),
None,
);
Log::flush();
}
ServerMessage::Part(msg) => {
botlog::notice(
@ -227,6 +231,7 @@ impl BotInstance {
Some("BotInstance > runner()".to_string()),
None,
);
Log::flush();
}
_ => {}
};
@ -341,30 +346,6 @@ impl BotInstance {
);
// /*
// [ ] Here, msg is taken, and message_text is split so we can pull the first argument
// */
// let inpt = msg
// .message_text
// .split(' ')
// .next()
// .expect("ERROR during BotCommand");
// /*
// [ ] What we should do instead is :
// 1. Check if the message is related to a Reply (so we know how many arguments we should skip)
// 2. If a reply, skip the first argument
// */
// if let Some(rslt) = msg.source.tags.0.get("reply-thread-parent-msg-id") {
// if let Some(rslt) = rslt {
// println!("Detected Reply : {}",rslt);
// }
// }
// [x] Check if a bot command based on ...
// [x] prefix + command