Skip to content

Commit 42424c4

Browse files
authored
default min max 5 & 15
1 parent b155d87 commit 42424c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client-twitter/src/post.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export class TwitterPostClient extends ClientBase {
3131

3232
onReady(postImmediately: boolean = true) {
3333
const generateNewTweetLoop = () => {
34-
const minMinutes = this.runtime.getSetting("POST_INTERVAL_MIN"),;
35-
const maxMinutes = this.runtime.getSetting("POST_INTERVAL_MAX"),;
34+
const minMinutes = this.runtime.getSetting("POST_INTERVAL_MIN") || 5;
35+
const maxMinutes = this.runtime.getSetting("POST_INTERVAL_MAX") || 15;
3636
const randomMinutes = Math.floor(Math.random() * (maxMinutes - minMinutes + 1)) + minMinutes;
3737
const delay = randomMinutes * 60 * 1000;
3838

0 commit comments

Comments
 (0)