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