Enh Botcommand with add to modmgr

This commit is contained in:
ModulatingForce 2023-12-21 20:43:10 -05:00
commit a577f502a2
2 changed files with 40 additions and 2 deletions

View file

@ -61,7 +61,7 @@ pub struct BotInstance {
pub incoming_messages : UnboundedReceiver<ServerMessage>,
pub ratelimiters : HashMap<ChType,RateLimiter>, // used to limit messages sent per channel
// botmodules : HashMap<ModType,Vec<EnType>>,
botmodules : ModulesManager,
pub botmodules : ModulesManager,
twitch_oauth : String,
pub bot_channels : Vec<ChType>,
/*bot_commands : Vec[BotCommand],
@ -157,7 +157,7 @@ impl BotInstance {
println!("(#{}) {}: {}", msg.channel_login, msg.sender.name, msg.message_text);
println!("Privmsg section");
// b.listener_main_prvmsg(&msg);
self.listener_main_prvmsg(&msg).await;