From 145dba5e6435026a237fbfbe50b9595f7d2a9175 Mon Sep 17 00:00:00 2001 From: Ophiuchus Date: Sat, 16 Nov 2024 19:46:50 -0600 Subject: [PATCH] default set to new standard post time 90-180 --- .env.example | 6 +++--- packages/client-twitter/src/post.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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;