Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: standardize ACTION_INTERVAL unit to minutes in twitter client #1738

Merged
merged 5 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading