diff --git a/src/index.ts b/src/index.ts index 0f47337..49ae27b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,6 @@ async function postStatus( visibility, in_reply_to_id: reply_id, }); - lastPost = Math.floor(Date.now() / 1000); console.log("Posted post!"); (successCallback ?? (() => {}))(); } catch { @@ -112,6 +111,7 @@ while (true) { content: prompt, }); await postStatus(newMessages, "public"); + lastPost = Math.floor(Date.now() / 1000); } // Reply handling