Mass Block [bsky] Reposts [and more]
0
fork

Configure Feed

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

added confirm after login

Winter c1a02b3d 04415a81

+18
+18
index.js
··· 1016 1016 const session = await authenticate({ handle, did, scope: getOAuthScope(false) }); 1017 1017 authSpinner.stop(`authenticated as ${session.did}`); 1018 1018 1019 + const confirmAuth = exitIfCancelled(await p.confirm({ 1020 + message: `proceed as ${session.did}?`, 1021 + initialValue: true, 1022 + })); 1023 + if (!confirmAuth) { 1024 + p.cancel("cancelled."); 1025 + process.exit(0); 1026 + } 1027 + 1019 1028 const blockSpinner = p.spinner(); 1020 1029 blockSpinner.start(`blocking 0/${toBlock.length} (batch size ${batchSize})...`); 1021 1030 ··· 1132 1141 authSpinner.start("authenticating via oauth..."); 1133 1142 const session = await authenticate({ handle, did, scope: getOAuthScope(true) }); 1134 1143 authSpinner.stop(`authenticated as ${session.did}`); 1144 + 1145 + const confirmAuth = exitIfCancelled(await p.confirm({ 1146 + message: `proceed as ${session.did}?`, 1147 + initialValue: true, 1148 + })); 1149 + if (!confirmAuth) { 1150 + p.cancel("cancelled."); 1151 + process.exit(0); 1152 + } 1135 1153 1136 1154 const unblockSpinner = p.spinner(); 1137 1155 unblockSpinner.start(`unblocking 0/${toUnblock.length}...`);