Skip to content

Commit 28090ed

Browse files
authored
update default twitterPostTemplate string
1 parent ab320b0 commit 28090ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client-twitter/src/post.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const twitterPostTemplate = `
2828
2929
# Task: Generate a post in the voice and style and perspective of {{agentName}} @{{twitterUserName}}.
3030
Write a 1-3 sentence post that is {{adjective}} about {{topic}} (without mentioning {{topic}} directly), from the perspective of {{agentName}}. Do not add commentary or acknowledge this request, just write the post.
31-
Your response should not contain any questions. Brief, concise statements only. The total character count MUST be less than 280. No emojis. Use \\n\\n (double spaces) between statements.`;
31+
Your response should not contain any questions. Brief, concise statements only. The total character count MUST be less than {{maxTweetLength}}. No emojis. Use \\n\\n (double spaces) between statements.`;
3232

3333
/**
3434
* Truncate text to fit within the Twitter character limit, ensuring it ends at a complete sentence.
@@ -148,6 +148,7 @@ export class TwitterPostClient {
148148
},
149149
{
150150
twitterUserName: this.client.profile.username,
151+
maxTweetLength: this.runtime.getSetting("MAX_TWEET_LENGTH"),
151152
}
152153
);
153154

0 commit comments

Comments
 (0)