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);
Thread
Login to reply