Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to:
New tweet being created with
\n
text instead of new lineRisks
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 insidegenerateNewTweet
. 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
Where should a reviewer start?
Quite simple change
Detailed testing steps
None, automated tests are fine.
Discord username
elowielo