Skip to content

Commit 8bdd3ca

Browse files
authored
Merge pull request elizaOS#1472 from elizaOS/tcm-twitter-duplicate-post
fix: duplicate twitter post
2 parents 2f29c5f + 8ebe51b commit 8bdd3ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client-twitter/src/post.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ export class TwitterPostClient {
171171
if (postImmediately) {
172172
await this.generateNewTweet();
173173
}
174-
generateNewTweetLoop();
175174

176175
// Add check for ENABLE_ACTION_PROCESSING before starting the loop
177176
const enableActionProcessing =
@@ -184,10 +183,11 @@ export class TwitterPostClient {
184183
error
185184
);
186185
});
187-
generateNewTweetLoop();
188186
} else {
189187
elizaLogger.log("Action processing loop disabled by configuration");
190188
}
189+
190+
generateNewTweetLoop();
191191
}
192192

193193
constructor(client: ClientBase, runtime: IAgentRuntime) {

0 commit comments

Comments
 (0)