Pronouns labels on Bluesky

refactor logging

Changed files
+2 -3
src
+1 -1
src/label.ts
···
}, new Set<string>());
if (rkey.includes(DELETE)) {
-
console.log(`${new Date().toISOString()}: `);
+
process.stdout.write(`${new Date().toISOString()}: `);
await server
.createLabels({ uri: did }, { negate: [...labels] })
.catch((err) => {
+1 -2
src/main.ts
···
ws.on("open", () => {
intervalID = setInterval(() => {
-
const timestamp = new Date().toISOString();
-
console.log(`${timestamp} cursor: ${cursor}`);
+
console.log(`${new Date().toISOString()} cursor: ${cursor}`);
fs.writeFile("cursor.txt", cursor.toString(), (err) => {
if (err) console.error(err);
});