|
|
@ -85,7 +85,6 @@ async function postStatus(
|
|
|
|
visibility,
|
|
|
|
visibility,
|
|
|
|
in_reply_to_id: reply_id,
|
|
|
|
in_reply_to_id: reply_id,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
lastPost = Math.floor(Date.now() / 1000);
|
|
|
|
|
|
|
|
console.log("Posted post!");
|
|
|
|
console.log("Posted post!");
|
|
|
|
(successCallback ?? (() => {}))();
|
|
|
|
(successCallback ?? (() => {}))();
|
|
|
|
} catch {
|
|
|
|
} catch {
|
|
|
@ -112,6 +111,7 @@ while (true) {
|
|
|
|
content: prompt,
|
|
|
|
content: prompt,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
await postStatus(newMessages, "public");
|
|
|
|
await postStatus(newMessages, "public");
|
|
|
|
|
|
|
|
lastPost = Math.floor(Date.now() / 1000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Reply handling
|
|
|
|
// Reply handling
|
|
|
|