Pronouns labels on Bluesky

remove cursor check

Changed files
-6
src
-6
src/main.ts
···
const agent = await getAgent();
let cursorFirehose = 0;
-
let oldCursor = 0;
let cursorFile = fs.readFileSync("cursor.txt", "utf8");
const firehose = new Firehose({ cursor: cursorFile ?? "" });
···
firehose.on("open", () => {
setInterval(() => {
-
if (oldCursor && oldCursor == cursorFirehose) {
-
firehose.close();
-
subscribe();
-
}
-
oldCursor = cursorFirehose;
const timestamp = new Date().toISOString();
console.log(`${timestamp} cursor: ${cursorFirehose}`);
fs.writeFile("cursor.txt", cursorFirehose.toString(), (err) => {
···
const agent = await getAgent();
let cursorFirehose = 0;
let cursorFile = fs.readFileSync("cursor.txt", "utf8");
const firehose = new Firehose({ cursor: cursorFile ?? "" });
···
firehose.on("open", () => {
setInterval(() => {
const timestamp = new Date().toISOString();
console.log(`${timestamp} cursor: ${cursorFirehose}`);
fs.writeFile("cursor.txt", cursorFirehose.toString(), (err) => {