functional identity demote,promote,canuserrun
This commit is contained in:
parent
a825544590
commit
2d5fa269de
5 changed files with 827 additions and 55 deletions
src/core
|
@ -66,6 +66,16 @@ pub mod botlog {
|
|||
|
||||
// trace, debug, info, notice, warn, error, fatal
|
||||
|
||||
/*
|
||||
|
||||
in main : Log::debug("Checking bot actions", Some("main()".to_string()), None);
|
||||
|
||||
in log :
|
||||
[blalba@timestmp]
|
||||
debug = "Checking bot actions",
|
||||
|
||||
*/
|
||||
|
||||
pub fn trace(in_msg:&str,in_module:Option<String>,in_prvmsg:Option<&PrivmsgMessage>) -> ()
|
||||
{
|
||||
|
||||
|
@ -86,6 +96,8 @@ pub mod botlog {
|
|||
.str("Chatter",&format!("{:?}",chatter))
|
||||
.str("Code_Module",&format!("{:?}",in_module))
|
||||
);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -385,6 +397,8 @@ pub struct BotInstance
|
|||
pub twitch_oauth : String,
|
||||
pub bot_channels : Vec<ChType>,
|
||||
pub botmgrs : BotManagers,
|
||||
//modesmgr : ModesManager, // Silent/Quiet , uwu , frisky/horny
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -435,7 +449,17 @@ impl BotInstance
|
|||
|
||||
|
||||
|
||||
let b = BotInstance {
|
||||
// let b = BotInstance {
|
||||
// prefix : prefix,
|
||||
// bot_channel : Channel(login_name) ,
|
||||
// incoming_messages : Arc::new(RwLock::new(incoming_messages)),
|
||||
// botmodules : ModulesManager::init().await,
|
||||
// twitch_oauth : oauth_token,
|
||||
// bot_channels : botchannels,
|
||||
// botmgrs : BotManagers::init(ratelimiters,client),
|
||||
// };
|
||||
|
||||
BotInstance {
|
||||
prefix : prefix,
|
||||
bot_channel : Channel(login_name) ,
|
||||
incoming_messages : Arc::new(RwLock::new(incoming_messages)),
|
||||
|
@ -443,10 +467,9 @@ impl BotInstance
|
|||
twitch_oauth : oauth_token,
|
||||
bot_channels : botchannels,
|
||||
botmgrs : BotManagers::init(ratelimiters,client),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
b
|
||||
// b
|
||||
}
|
||||
|
||||
pub async fn runner(self) -> () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue