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.

feat: add functionality to announce mints and update related parameters

nirholas74b2904470ba
diff --git a/public/pumpfun.html b/public/pumpfun.html
index cf168e8c4..19310391b 100644
--- a/public/pumpfun.html
+++ b/public/pumpfun.html
@@ -603,7 +603,8 @@
if (!confirm('URL does not end in .glb / .gltf / .vrm. Try anyway?')) return;
}
picker.customUrl.value = '';
- selectAvatar({ url: parsed.href, name: 'Custom URL', sub: shortenUrl(parsed.href) });
+ const name = parsed.pathname.split('/').pop() || 'Custom';
+ selectAvatar({ url: parsed.href, name, sub: shortenUrl(parsed.href) });
}
function shortenUrl(u) {
@@ -1285,6 +1286,7 @@
}
function dispatchReaction(kind, ev) {
+ if (kind === 'mint' && !params.announceMints) return;
const reaction = reactionFor(kind, ev);
if (!reaction) return;
const t = Date.now();
@@ -1858,6 +1860,12 @@
);
});
+ $('ctl-announce-mints').addEventListener('click', (e) => {
+ params.announceMints = e.currentTarget.dataset.on !== '1';
+ e.currentTarget.dataset.on = params.announceMints ? '1' : '0';
+ syncURL();
+ });
+
let kindTimer;
const onFilterChange = (delay = 200) => {
clearTimeout(kindTimer);