Skip to content

Commit

Permalink
Merge pull request #1472 from elizaOS/tcm-twitter-duplicate-post
Browse files Browse the repository at this point in the history
fix: duplicate twitter post
  • Loading branch information
shakkernerd authored Dec 26, 2024
2 parents 2f29c5f + 8ebe51b commit 8bdd3ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -184,10 +183,11 @@ export class TwitterPostClient {
error
);
});
generateNewTweetLoop();
} else {
elizaLogger.log("Action processing loop disabled by configuration");
}

generateNewTweetLoop();
}

constructor(client: ClientBase, runtime: IAgentRuntime) {
Expand Down

0 comments on commit 8bdd3ca

Please sign in to comment.