Skip to content

Commit 61a2563

Browse files
committed
this is the normal config with the new twitter id test feature added
1 parent 9b47b59 commit 61a2563

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/client-twitter/src/post.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class TwitterPostClient {
277277
twitterPostTemplate,
278278
});
279279

280-
console.log("twitter context:\n" + context);
280+
//console.log("twitter context:\n" + context);
281281

282282
elizaLogger.debug("generate post prompt:\n" + context);
283283

@@ -434,9 +434,7 @@ export class TwitterPostClient {
434434
this.runtime.character.templates?.twitterPostTemplate ||
435435
twitterPostTemplate,
436436
});
437-
console.log("tweetState INSIDE generate tweet content:\n" + tweetState);
438-
console.log("context INSIDE generate tweet content:\n" + context);
439-
console.log("runtime INSIDE generate tweet content:\n" + this.runtime);
437+
440438
const response = await generateText({
441439
runtime: this.runtime,
442440
context: options?.context || context,
@@ -525,7 +523,6 @@ export class TwitterPostClient {
525523
this.runtime.character.name,
526524
"twitter"
527525
);
528-
// elizaLogger.log(`Fetched ${homeTimeline.length} tweets to process`);
529526
// this is testing code ####################################
530527
let tweets = [];
531528
// Check if we're in test mode with a specific tweet
@@ -545,7 +542,6 @@ export class TwitterPostClient {
545542

546543
const results = [];
547544
// this is testing code ####################################
548-
//for (const tweet of homeTimeline) {
549545
for (const tweet of tweets) {
550546
elizaLogger.log(`Processing tweet ID: ${tweet.id}`);
551547
//test image description function
@@ -618,7 +614,6 @@ export class TwitterPostClient {
618614
);
619615
continue;
620616
}
621-
actionResponse.reply = true;
622617
const executedActions: string[] = [];
623618

624619
// Execute actions
@@ -919,7 +914,7 @@ export class TwitterPostClient {
919914
}
920915
);
921916

922-
console.log("enrichedState INSIDE REPLY", enrichedState);
917+
//console.log("enrichedState INSIDE REPLY", enrichedState);
923918
// Generate and clean the reply content
924919
const replyText = await this.generateTweetContent(enrichedState, {
925920
template:

0 commit comments

Comments
 (0)