Skip to content

Commit

Permalink
Merge pull request elizaOS#1738 from sin-bufan/fix-twitter-actionInte…
Browse files Browse the repository at this point in the history
…rval

fix: standardize ACTION_INTERVAL unit to minutes in twitter client
  • Loading branch information
shakkernerd authored Jan 4, 2025
2 parents 1a8db58 + 40b0071 commit ece215a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ POST_INTERVAL_MAX= # Default: 180
POST_IMMEDIATELY=

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

# Feature Flags
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 @@ -126,7 +126,7 @@ export class TwitterPostClient {
`- Action Processing: ${this.client.twitterConfig.ENABLE_ACTION_PROCESSING ? "enabled" : "disabled"}`
);
elizaLogger.log(
`- Action Interval: ${this.client.twitterConfig.ACTION_INTERVAL} seconds`
`- Action Interval: ${this.client.twitterConfig.ACTION_INTERVAL} minutes`
);
elizaLogger.log(
`- Post Immediately: ${this.client.twitterConfig.POST_IMMEDIATELY ? "enabled" : "disabled"}`
Expand Down Expand Up @@ -185,7 +185,7 @@ export class TwitterPostClient {
if (results) {
elizaLogger.log(`Processed ${results.length} tweets`);
elizaLogger.log(
`Next action processing scheduled in ${actionInterval / 1000} seconds`
`Next action processing scheduled in ${actionInterval} minutes`
);
// Wait for the full interval before next processing
await new Promise((resolve) =>
Expand Down

0 comments on commit ece215a

Please sign in to comment.