Skip to content

Commit bc891f9

Browse files
committed
Make the unit of ACTION_INTERVAL consistent across all instances to minutes.
1 parent 76d4f42 commit bc891f9

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
@@ -78,7 +78,7 @@ POST_INTERVAL_MAX= # Default: 180
7878
POST_IMMEDIATELY=
7979

8080
# Twitter action processing configuration
81-
ACTION_INTERVAL=300000 # Interval in milliseconds between action processing runs (default: 5 minutes)
81+
ACTION_INTERVAL= # Interval in minutes between action processing runs (default: 5 minutes)
8282
ENABLE_ACTION_PROCESSING=false # Set to true to enable the action processing loop
8383

8484
# Feature Flags

packages/client-twitter/src/post.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class TwitterPostClient {
121121
`- Action Processing: ${this.client.twitterConfig.ENABLE_ACTION_PROCESSING ? "enabled" : "disabled"}`
122122
);
123123
elizaLogger.log(
124-
`- Action Interval: ${this.client.twitterConfig.ACTION_INTERVAL} seconds`
124+
`- Action Interval: ${this.client.twitterConfig.ACTION_INTERVAL} minutes`
125125
);
126126
elizaLogger.log(
127127
`- Post Immediately: ${this.client.twitterConfig.POST_IMMEDIATELY ? "enabled" : "disabled"}`
@@ -180,7 +180,7 @@ export class TwitterPostClient {
180180
if (results) {
181181
elizaLogger.log(`Processed ${results.length} tweets`);
182182
elizaLogger.log(
183-
`Next action processing scheduled in ${actionInterval / 1000} seconds`
183+
`Next action processing scheduled in ${actionInterval} minutes`
184184
);
185185
// Wait for the full interval before next processing
186186
await new Promise((resolve) =>

0 commit comments

Comments
 (0)