Skip to content

Commit

Permalink
Merge pull request #360 from oguzserdar/patch-1
Browse files Browse the repository at this point in the history
update tweet interval to 90-180 mins
  • Loading branch information
lalalune authored Nov 16, 2024
2 parents 4f4316e + 35f243a commit ccdf3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export class TwitterPostClient extends ClientBase {
this.generateNewTweet();
setTimeout(
generateNewTweetLoop,
(Math.floor(Math.random() * (4 - 1 + 1)) + 1) * 60 * 60 * 1000
); // Random interval between 1 and 4 hours
(Math.floor(Math.random() * (180 - 90 + 1)) + 90) * 60 * 1000
); // Random interval: min 90min/max 180min (1.5-3h), Results in min 8/max 16 posts per day
};
// setTimeout(() => {
generateNewTweetLoop();
Expand Down

0 comments on commit ccdf3db

Please sign in to comment.