We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b155d87 commit 42424c4Copy full SHA for 42424c4
packages/client-twitter/src/post.ts
@@ -31,8 +31,8 @@ export class TwitterPostClient extends ClientBase {
31
32
onReady(postImmediately: boolean = true) {
33
const generateNewTweetLoop = () => {
34
- const minMinutes = this.runtime.getSetting("POST_INTERVAL_MIN"),;
35
- const maxMinutes = this.runtime.getSetting("POST_INTERVAL_MAX"),;
+ const minMinutes = this.runtime.getSetting("POST_INTERVAL_MIN") || 5;
+ const maxMinutes = this.runtime.getSetting("POST_INTERVAL_MAX") || 15;
36
const randomMinutes = Math.floor(Math.random() * (maxMinutes - minMinutes + 1)) + minMinutes;
37
const delay = randomMinutes * 60 * 1000;
38
0 commit comments