Skip to content

Commit 63918b9

Browse files
authored
Merge pull request #369 from o-on-x/main
default set to new standard post time 90-180 type: post time
2 parents 7bc8edc + 145dba5 commit 63918b9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.env.example

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ X_SERVER_URL=
2929
XAI_API_KEY=
3030
XAI_MODEL=
3131

32-
#POST INTERVAL RANDOM MIN-MAX.
33-
POST_INTERVAL_MIN=30 #5 #Default
34-
POST_INTERVAL_MAX=90 #10 #Default
32+
#POST INTERVAL RANDOM MIN-MAX MINUTES
33+
POST_INTERVAL_MIN= #90 #Default
34+
POST_INTERVAL_MAX= #180 #Default
3535

3636

3737
#USE IMAGE GEN

packages/client-twitter/src/post.ts

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

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

0 commit comments

Comments
 (0)