Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default set to new standard post time 90-180 type: post time #369

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading