Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
cygaar committed Dec 18, 2024
1 parent 646acea commit 7aa0902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class TwitterPostClient {
const randomMinutes =
Math.floor(Math.random() * (maxMinutes - minMinutes + 1)) +
minMinutes;
const delay = 1 * 60 * 1000;
const delay = randomMinutes * 60 * 1000;

if (Date.now() > lastPostTimestamp + delay) {
await this.generateNewTweet();
Expand Down

0 comments on commit 7aa0902

Please sign in to comment.