diff --git a/.env.example b/.env.example index 5bfbb9295b..295dc3aaf0 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/packages/client-twitter/src/post.ts b/packages/client-twitter/src/post.ts index 8a759673f7..2bddb14ff1 100644 --- a/packages/client-twitter/src/post.ts +++ b/packages/client-twitter/src/post.ts @@ -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;