@elizaos/plugin-twitter 1.2.14 → 1.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -5
- package/dist/index.js +384 -233
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -128,6 +128,9 @@ TWITTER_ENABLE_POST=true # Enable autonomous tweet posting
|
|
|
128
128
|
# Optional: Posting Configuration
|
|
129
129
|
TWITTER_POST_IMMEDIATELY=true # Post on startup (great for testing)
|
|
130
130
|
TWITTER_POST_INTERVAL=120 # Minutes between posts (default: 120)
|
|
131
|
+
# For more natural timing, use MIN/MAX intervals:
|
|
132
|
+
TWITTER_POST_INTERVAL_MIN=90 # Minimum minutes between posts
|
|
133
|
+
TWITTER_POST_INTERVAL_MAX=150 # Maximum minutes between posts
|
|
131
134
|
```
|
|
132
135
|
|
|
133
136
|
### Step 5: Run Your Bot
|
|
@@ -174,12 +177,25 @@ TWITTER_ENABLE_ACTIONS=false # Enable timeline actions (likes, retweets, q
|
|
|
174
177
|
TWITTER_ENABLE_DISCOVERY= # Enable discovery service (defaults to true if ACTIONS enabled)
|
|
175
178
|
|
|
176
179
|
# Timing Configuration (all in minutes)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
# For natural behavior, set MIN/MAX intervals - the agent will randomly choose between them
|
|
181
|
+
# If MIN/MAX not set, falls back to the fixed interval values
|
|
182
|
+
|
|
183
|
+
# Post intervals
|
|
184
|
+
TWITTER_POST_INTERVAL=120 # Fixed interval between posts (default: 120, used if MIN/MAX not set)
|
|
185
|
+
TWITTER_POST_INTERVAL_MIN=90 # Minimum minutes between posts (default: 90)
|
|
186
|
+
TWITTER_POST_INTERVAL_MAX=150 # Maximum minutes between posts (default: 150)
|
|
187
|
+
|
|
188
|
+
# Engagement intervals
|
|
189
|
+
TWITTER_ENGAGEMENT_INTERVAL=30 # Fixed interval for interactions (default: 30, used if MIN/MAX not set)
|
|
190
|
+
TWITTER_ENGAGEMENT_INTERVAL_MIN=20 # Minimum minutes between engagements (default: 20)
|
|
191
|
+
TWITTER_ENGAGEMENT_INTERVAL_MAX=40 # Maximum minutes between engagements (default: 40)
|
|
192
|
+
|
|
193
|
+
# Discovery intervals
|
|
194
|
+
TWITTER_DISCOVERY_INTERVAL_MIN=15 # Minimum minutes between discovery cycles (default: 15)
|
|
195
|
+
TWITTER_DISCOVERY_INTERVAL_MAX=30 # Maximum minutes between discovery cycles (default: 30)
|
|
180
196
|
|
|
181
197
|
# Engagement Limits
|
|
182
|
-
TWITTER_MAX_ENGAGEMENTS_PER_RUN=
|
|
198
|
+
TWITTER_MAX_ENGAGEMENTS_PER_RUN=5 # Maximum interactions per engagement cycle (default: 5)
|
|
183
199
|
TWITTER_MAX_TWEET_LENGTH=280 # Maximum tweet length
|
|
184
200
|
|
|
185
201
|
# Discovery Service Settings
|
|
@@ -288,7 +304,33 @@ TWITTER_ENABLE_POST=true
|
|
|
288
304
|
TWITTER_POST_IMMEDIATELY=true
|
|
289
305
|
```
|
|
290
306
|
|
|
291
|
-
##
|
|
307
|
+
## 🚨 Troubleshooting
|
|
308
|
+
|
|
309
|
+
### 403 Errors When Engaging with Tweets
|
|
310
|
+
|
|
311
|
+
If you see errors like "Failed to create tweet: Request failed with code 403", this usually means:
|
|
312
|
+
|
|
313
|
+
1. **Missing Write Permissions**: Make sure your Twitter app has "Read and write" permissions
|
|
314
|
+
- Go to your app settings in the Twitter Developer Portal
|
|
315
|
+
- Check that App permissions shows "Read and write" ✅
|
|
316
|
+
- If not, change it and regenerate your Access Token & Secret
|
|
317
|
+
|
|
318
|
+
2. **Protected Accounts**: The bot may be trying to engage with protected/private accounts
|
|
319
|
+
- The plugin now automatically skips these with a warning
|
|
320
|
+
|
|
321
|
+
3. **Self-Engagement**: Trying to reply to or quote your own tweets
|
|
322
|
+
- Twitter API doesn't allow this and returns 403
|
|
323
|
+
|
|
324
|
+
4. **Account Restrictions**: Your account may have restrictions
|
|
325
|
+
- Check if your account is in good standing
|
|
326
|
+
- Ensure you're not violating Twitter's automation rules
|
|
327
|
+
|
|
328
|
+
The plugin will now:
|
|
329
|
+
- Automatically detect and skip 403 errors with a warning
|
|
330
|
+
- Continue processing other tweets
|
|
331
|
+
- Mark failed tweets as "skip" to avoid retrying
|
|
332
|
+
|
|
333
|
+
### Other Common Issues
|
|
292
334
|
|
|
293
335
|
### "403 Forbidden" When Posting
|
|
294
336
|
|