potential fix
This commit is contained in:
@@ -237,7 +237,8 @@ pub async fn summary(
|
||||
return Ok(());
|
||||
};
|
||||
|
||||
let ai_chat_manager = ctx.data().ai_chat.clone();
|
||||
let data = ctx.serenity_context().data.read().await;
|
||||
let ai_chat_manager = data.get::<commands::fun::AiChatKey>().cloned().ok_or_else(|| anyhow::anyhow!("AI Chat manager not found"))?;
|
||||
let content = msg.content.trim();
|
||||
|
||||
if content.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user