From 2b5afb50408e607c8568ab9a9b1be9aaf39bf782 Mon Sep 17 00:00:00 2001 From: syui Date: Mon, 23 Mar 2026 05:42:17 +0900 Subject: [PATCH] fix bot --- src/commands/bot.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/commands/bot.rs b/src/commands/bot.rs index caf256f..7f20dc5 100644 --- a/src/commands/bot.rs +++ b/src/commands/bot.rs @@ -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,