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

clean newlines for new tweet #1141

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

owlcode
Copy link
Contributor

@owlcode owlcode commented Dec 16, 2024

Relates to:

New tweet being created with \n text instead of new line

Risks

No risks

Background

What does this PR do?

Improves tweet creation script. Make sure none \n are inside newly published tweet.

What kind of change is this?

Improvement. This logic is already there inside generateTweetContent however it's not included inside generateNewTweet. It could use a little more refactor but right now I'm just posting this as an easy fix.

Why are we doing this? Any context or related work?

I'm playing around with eliza and my twitter account and saw that it posted tweet with \n \n inside which I don't think is what AI beneath intended :)

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

I looked at the logs and inserted the cleanup function right before it's submitted to twitter. I'm attaching screenshot from logs to see my reasoning
image

Where should a reviewer start?

Quite simple change

Detailed testing steps

None, automated tests are fine.

Discord username

elowielo

@owlcode owlcode force-pushed the clean-newlines-from-new-tweets branch from bdfac09 to db9580d Compare December 16, 2024 20:28
@owlcode owlcode changed the base branch from main to develop December 16, 2024 20:29
Copy link
Collaborator

@monilpat monilpat left a comment

Choose a reason for hiding this comment

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

LGTM!

@monilpat monilpat merged commit 105025a into elizaOS:develop Dec 16, 2024
4 of 5 checks passed
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