A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add retry logic for bsky posts to handle socket/network errors

jack a11fb300 e8a8817f

+15 -1
+15 -1
src/index.ts
··· 886 886 } 887 887 888 888 try { 889 - const response = await agent.post(postRecord); 889 + // Retry logic for network/socket errors 890 + let response: any; 891 + let retries = 3; 892 + while (retries > 0) { 893 + try { 894 + response = await agent.post(postRecord); 895 + break; 896 + } catch (err: any) { 897 + retries--; 898 + if (retries === 0) throw err; 899 + console.warn(`[${twitterUsername}] ⚠️ Post failed (Socket/Network), retrying in 5s... (${retries} retries left)`); 900 + await new Promise(r => setTimeout(r, 5000)); 901 + } 902 + } 903 + 890 904 const currentPostInfo = { 891 905 uri: response.uri, 892 906 cid: response.cid,