We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1871e9b commit c6da87cCopy full SHA for c6da87c
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") || 5;
35
- const maxMinutes = this.runtime.getSetting("POST_INTERVAL_MAX") || 15;
+ const minMinutes = parseInt(this.runtime.getSetting("POST_INTERVAL_MIN")) || 5;
+ const maxMinutes = parseInt(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