This commit is contained in:
ModulatingForce 2024-03-25 09:30:15 -04:00
commit 246c3d98e6
4 changed files with 136 additions and 78 deletions
src/custom/experimental

View file

@ -145,34 +145,34 @@ async fn sayout(params : ExecBodyParams) {
None,
);
// if botlock.botmgrs.chat.client.get_channel_status(trgchnl.to_string().clone()).await == (false,false) {
if !botlock.bot_channels.contains(&Channel(trgchnl.to_lowercase().to_string().clone())) {
// // if botlock.botmgrs.chat.client.get_channel_status(trgchnl.to_string().clone()).await == (false,false) {
// if !botlock.bot_channels.contains(&Channel(trgchnl.to_lowercase().to_string().clone())) {
// in the case where the provided channel isn't something we're known to be connected to
botlog::warn(
&format!("A message attempted to send for a Non-Joined Channel : {}",trgchnl.to_string().clone()),
Some("Chat > send_botmsg".to_string()),
None,
);
// return ;
// // in the case where the provided channel isn't something we're known to be connected to
// botlog::warn(
// &format!("A message attempted to send for a Non-Joined Channel : {}",trgchnl.to_string().clone()),
// Some("Chat > send_botmsg".to_string()),
// None,
// );
// // return ;
if parent_module.clone().is_some() {
// if parent_module.clone().is_some() {
botlock
.botmgrs
.chat
.say_in_reply_to(
&params.msg,
format!("Not a Joined Channel : {}",trgchnl),
// parent_module.clone().unwrap().clone()
params.clone(),
).await;
// botlock
// .botmgrs
// .chat
// .say_in_reply_to(
// &params.msg,
// format!("Not a Joined Channel : {}",trgchnl),
// // parent_module.clone().unwrap().clone()
// params.clone(),
// ).await;
}
// }
}
// }
/*
1. If a Reply ,