fix bot
This commit is contained in:
@@ -56,7 +56,16 @@ impl ClaudeSession {
|
||||
"allow": [
|
||||
"Read",
|
||||
"Glob",
|
||||
"Grep"
|
||||
"Grep",
|
||||
"mcp__aigpt__read_core",
|
||||
"mcp__aigpt__read_memory",
|
||||
"mcp__aigpt__save_memory",
|
||||
"mcp__aigpt__compress",
|
||||
"mcp__ailog__post_create",
|
||||
"mcp__ailog__chat_save",
|
||||
"mcp__ailog__chat_list",
|
||||
"mcp__ailog__chat_new",
|
||||
"mcp__ailog__get_character"
|
||||
]
|
||||
}
|
||||
});
|
||||
@@ -453,6 +462,14 @@ async fn poll_once(
|
||||
continue;
|
||||
}
|
||||
|
||||
// Skip notifications older than today (UTC)
|
||||
if let Some(indexed) = notif["indexedAt"].as_str() {
|
||||
let today = chrono::Utc::now().format("%Y-%m-%d").to_string();
|
||||
if !indexed.starts_with(&today) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
let uri = match notif["uri"].as_str() {
|
||||
Some(u) => u,
|
||||
None => continue,
|
||||
|
||||
Reference in New Issue
Block a user