This commit is contained in:
ModulatingForce 2023-12-23 12:29:20 -05:00
parent b2344b14f7
commit 31f4924acf

View file

@ -45,11 +45,11 @@ pub enum ModType {
pub use ModType::BotModule; pub use ModType::BotModule;
pub enum EnType { // pub enum EnType {
Enabled(ChType), // Enabled(ChType),
} // }
pub use EnType::Enabled; // pub use EnType::Enabled;
// pub enum ModStatusType { // pub enum ModStatusType {
// Enabled(EnType), // Enabled(EnType),
@ -76,9 +76,9 @@ impl Chat {
pub async fn say_in_reply_to(&mut self, msg:& PrivmsgMessage , mut outmsg:String) -> () { pub async fn say_in_reply_to(&mut self, msg:& PrivmsgMessage , mut outmsg:String) -> () {
// envelops a message before sending a message // envelops a message before sending a message
// [ ] This could include additional formatting (e.g., add in random number of blank spaces) // [x] This could include additional formatting (e.g., add in random number of blank spaces)
// [ ] Incrementing or checking with RateLimiters // [x] Incrementing or checking with RateLimiters
// [ ] For BotActions of Enabled Modules , checking whether the caller is Permissible to run the comman // [ ] For BotActions of Enabled Modules , checking whether the caller is Permissible to run the command ?
// self.client.say_in_reply_to(msg,outmsg).await.unwrap(); // self.client.say_in_reply_to(msg,outmsg).await.unwrap();
@ -259,6 +259,8 @@ impl BotInstance {
// b.listener_main_prvmsg(&msg); // b.listener_main_prvmsg(&msg);
self.listener_main_prvmsg(&msg).await; self.listener_main_prvmsg(&msg).await;
// - BotCommand listener should likely need to be called within the above
}, },
ServerMessage::Whisper(msg) => { ServerMessage::Whisper(msg) => {
@ -322,6 +324,11 @@ impl BotInstance {
self.chat.say_in_reply_to(msg,String::from("annytfLurk")).await; self.chat.say_in_reply_to(msg,String::from("annytfLurk")).await;
// // [ ] Need to run through all Listener Bodies for Enabled Modules for the context of the message (e.g., ModStatus is Enabled in the context for the channel)
// // [ ] There should be a BotCommand Listener to check for prefixes ran
println!("End of Separate Listener Main prvmsg"); println!("End of Separate Listener Main prvmsg");
} }