Skip to content

Commit fe5d551

Browse files
committed
fix duplicate twitter post
1 parent cd61156 commit fe5d551

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)