From fe5d551c77b8eed67788013efce4efc99edaab36 Mon Sep 17 00:00:00 2001 From: Ting Chien Meng Date: Thu, 26 Dec 2024 09:58:11 -0500 Subject: [PATCH] fix duplicate twitter post --- packages/client-twitter/src/post.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client-twitter/src/post.ts b/packages/client-twitter/src/post.ts index da63212c75..d2b8c638a6 100644 --- a/packages/client-twitter/src/post.ts +++ b/packages/client-twitter/src/post.ts @@ -171,7 +171,6 @@ export class TwitterPostClient { if (postImmediately) { await this.generateNewTweet(); } - generateNewTweetLoop(); // Add check for ENABLE_ACTION_PROCESSING before starting the loop const enableActionProcessing = @@ -184,10 +183,11 @@ export class TwitterPostClient { error ); }); - generateNewTweetLoop(); } else { elizaLogger.log("Action processing loop disabled by configuration"); } + + generateNewTweetLoop(); } constructor(client: ClientBase, runtime: IAgentRuntime) {