Skip to content

Commit bdd4849

Browse files
authored
fix: move dry run return to tweet reply
1 parent 8c1e53e commit bdd4849

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

packages/client-twitter/src/post.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -824,12 +824,6 @@ export class TwitterPostClient {
824824
tweetState: any,
825825
executedActions: string[]
826826
) {
827-
if (this.isDryRun) {
828-
elizaLogger.info(`Dry run: would have processed reply to tweet ${tweet.id}`);
829-
executedActions.push("reply (dry run)");
830-
return;
831-
}
832-
833827
try {
834828
// Build conversation thread for context
835829
const thread = await buildConversationThread(tweet, this.client);
@@ -906,9 +900,8 @@ export class TwitterPostClient {
906900
}
907901

908902
if (this.isDryRun) {
909-
elizaLogger.info(
910-
`Dry run: would have posted reply: ${replyText}`
911-
);
903+
elizaLogger.info(`Dry run: reply to tweet ${tweet.id} would have been: ${replyText}`);
904+
executedActions.push("reply (dry run)");
912905
return;
913906
}
914907

0 commit comments

Comments
 (0)