Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

Oracle alerts sniper chat-id support; revert sitemap OG meta drift

nirholas5e9f3643bfe1
diff --git a/api/_lib/oracle/alerts.js b/api/_lib/oracle/alerts.js
index 1ae18fcd7..9a1297550 100644
--- a/api/_lib/oracle/alerts.js
+++ b/api/_lib/oracle/alerts.js
@@ -28,6 +28,12 @@ const MIN_TIER_RANK = TIER_ORDER[MIN_ALERT_TIER] ?? 2;
// same worker even if alerted_at DB write is slow.
const _alerted = new Set();
+// Personal signal dedup: map of "chatId:mint" → last alerted timestamp (ms).
+// Prevents the 15-min cron window from firing the same personal signal 3×
+// in a row. 1-hour cooldown per (subscriber, coin) pair.
+const _personalSignalAt = new Map();
+const PERSONAL_SIGNAL_COOLDOWN_MS = 60 * 60 * 1000;
+
const TIER_EMOJI = { prime: '🟣', strong: '🔵', lean: '🟡', watch: '⚪', avoid: '🔴' };
function tierEmoji(tier) { return TIER_EMOJI[tier] || '⚪'; }
@@ -257,6 +263,11 @@ export async function alertPersonalSignal(chatId, coin, minScore) {
if (!token || !chatId) return;
if ((Number(coin.score) || 0) < minScore) return;
+ const dedupKey = `${chatId}:${coin.mint}`;
+ const last = _personalSignalAt.get(dedupKey) || 0;
+ if (Date.now() - last < PERSONAL_SIGNAL_COOLDOWN_MS) return;
+ _personalSignalAt.set(dedupKey, Date.now());
+
const text = format(coin) + `\n<i>Your agent threshold: ${minScore}</i>`;
await sendTo(chatId, text);
}
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 80a43da81..eb8290e2d 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,20 +56,6 @@
.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }
.sm-brand:hover { text-decoration: none; }
</style>
-
- <meta property="og:type" content="website">
- <meta property="og:site_name" content="three.ws">
- <meta property="og:title" content="Sitemap · three.ws">
- <meta property="og:description" content="Human-readable index of every page on three.ws.">
- <meta property="og:url" content="https://three.ws/sitemap">
- <meta property="og:image" content="https://three.ws/og-image.png">
- <meta property="og:image:width" content="1200">
- <meta property="og:image:height" content="630">
- <meta name="twitter:card" content="summary_large_image">
- <meta name="twitter:title" content="Sitemap · three.ws">
- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">
- <meta name="twitter:image" content="https://three.ws/og-image.png">
- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
</head>
<body>
<header class="sm-topbar">