Skip to content

Commit b79cd60

Browse files
authoredJan 4, 2025
Merge pull request #1738 from sin-bufan/fix-twitter-actionInterval
fix: standardize ACTION_INTERVAL unit to minutes in twitter client
2 parents 3b289dc + d9cf3a9 commit b79cd60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ POST_INTERVAL_MAX= # Default: 180
8383
POST_IMMEDIATELY=
8484

8585
# Twitter action processing configuration
86-
ACTION_INTERVAL=300000 # Interval in milliseconds between action processing runs (default: 5 minutes)
86+
ACTION_INTERVAL= # Interval in minutes between action processing runs (default: 5 minutes)
8787
ENABLE_ACTION_PROCESSING=false # Set to true to enable the action processing loop
8888

8989
# Feature Flags

‎packages/client-twitter/src/post.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class TwitterPostClient {
126126
`- Action Processing: ${this.client.twitterConfig.ENABLE_ACTION_PROCESSING ? "enabled" : "disabled"}`
127127
);
128128
elizaLogger.log(
129-
`- Action Interval: ${this.client.twitterConfig.ACTION_INTERVAL} seconds`
129+
`- Action Interval: ${this.client.twitterConfig.ACTION_INTERVAL} minutes`
130130
);
131131
elizaLogger.log(
132132
`- Post Immediately: ${this.client.twitterConfig.POST_IMMEDIATELY ? "enabled" : "disabled"}`
@@ -185,7 +185,7 @@ export class TwitterPostClient {
185185
if (results) {
186186
elizaLogger.log(`Processed ${results.length} tweets`);
187187
elizaLogger.log(
188-
`Next action processing scheduled in ${actionInterval / 1000} seconds`
188+
`Next action processing scheduled in ${actionInterval} minutes`
189189
);
190190
// Wait for the full interval before next processing
191191
await new Promise((resolve) =>

0 commit comments

Comments
 (0)