Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use MAX_TWEET_LENGTH from setting #960

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

oxSaturn
Copy link
Contributor

Relates to:

Risks

Background

What does this PR do?

A follow-up PR of #912 where some code weren't updated.

What kind of change is this?

Documentation changes needed?

Testing

Where should a reviewer start?

Detailed testing steps

const tweetChunks = splitTweetContent(content.text);
const tweetChunks = splitTweetContent(
content.text,
Number(client.runtime.getSetting("MAX_TWEET_LENGTH"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if this is not set? will passing a falsish value into splitTweetContent cause a problm?

@odilitime odilitime merged commit 7fe36e2 into elizaOS:main Dec 10, 2024
3 checks passed
@oxSaturn oxSaturn deleted the fix/MAX_TWEET_LENGTH branch December 11, 2024 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants