Thread

Replies (3)

🛡️
const ws = new WebSocket('wss://yabu.me'); const statuses = ['🐙=͟͟͞͞ 🪃', '🐙   =͟͟͞͞ 🪃', '🐙⁉️   🪃=͟͟͞͞', '🐙💦 🪃=͟͟͞͞', '🐙💥🪃']; let i = 0; const update = async () => { if (i >= statuses.length) { return; } console.log(statuses[i]); ws.send(JSON.stringify(['EVENT', await window.nostr.signEvent({kind: 30315, content: statuses[i], tags: [['d', 'general']], created_at: Math.floor(Date.now() / 1000)})])); i++; setTimeout(update, 1000); }; setTimeout(update, 1000);
🛡️
const ws = new WebSocket('wss://yabu.me'); const statuses = ['🐙=͟͟͞͞ 🪃', '🐙   =͟͟͞͞ 🪃', '🐙⁉️   🪃=͟͟͞͞', '🐙💦 🪃=͟͟͞͞', '🐙💥🪃']; let i = 0; const update = async () => { const status = statuses[i % statuses.length]; console.log(status); ws.send(JSON.stringify(['EVENT', await window.nostr.signEvent({kind: 30315, content: status, tags: [['d', 'general']], created_at: Math.floor(Date.now() / 1000)})])); i++; setTimeout(update, 1000); }; setTimeout(update, 1000);