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

update tweet interval to 90-180 mins #360

Merged
merged 1 commit into from
Nov 16, 2024
Merged

Conversation

oguzserdar
Copy link
Contributor

Adjust tweet interval randomization

Summary

Adjusts existing randomized posting interval from 1-4 hours to 90-180 minutes (1.5-3 hours) to help with account restrictions until better solution is implemented.

Changes

  • Modified existing interval in generateNewTweetLoop from 1-4 hours to 90-180 minutes
  • Updated interval calculation: (Math.floor(Math.random() * (180 - 90 + 1)) + 90) * 60 * 1000
  • Changes posting range from 6-24 to 8-16 posts per day

Context

This adjustment helps better align with Twitter's usage patterns and provides more consistent posting frequency. A more sophisticated system could be considered that:

  • Could support configurable posting patterns (uniform, normal, life-cycle based)
  • Could allow custom range settings
  • Could include rate limit handling
  • Could add more natural posting behaviors

Testing

  • Verified interval generation stays within 90-180 minute range
  • Tested loop continuation

This provides a baseline that respects platform usage patterns.

Temporary solution for controlled post frequency range of 8-16 posts per day
@lalalune lalalune merged commit ccdf3db into elizaOS:main Nov 16, 2024
@oguzserdar oguzserdar deleted the patch-1 branch November 17, 2024 01:46
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