Skip to content

Commit

Permalink
Merge pull request #369 from o-on-x/main
Browse files Browse the repository at this point in the history
default set to new standard  post time 90-180 type: post time
  • Loading branch information
o-on-x authored Nov 17, 2024
2 parents 7bc8edc + 145dba5 commit 63918b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ X_SERVER_URL=
XAI_API_KEY=
XAI_MODEL=

#POST INTERVAL RANDOM MIN-MAX.
POST_INTERVAL_MIN=30 #5 #Default
POST_INTERVAL_MAX=90 #10 #Default
#POST INTERVAL RANDOM MIN-MAX MINUTES
POST_INTERVAL_MIN= #90 #Default
POST_INTERVAL_MAX= #180 #Default


#USE IMAGE GEN
Expand Down
4 changes: 2 additions & 2 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export class TwitterPostClient extends ClientBase {

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

Expand Down

0 comments on commit 63918b9

Please sign in to comment.