-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
TWITTER_TARGET_USERS cant use names starting with digits #1556
Comments
Hello @cre8tions! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor! |
Seems It's already fixed on the develop branch c84b33c. |
@cre8tions please kindly try the develop branch and see if the issue is fixed |
develop 20090bf seems to still have the error. I just tried it and I'm getting a different error message this time
|
If the latest dev is not working still we should add more debug logging. |
I'll work on this, along with adding wildcard support |
Fix for elizaOS#1556 - Added support for Twitter usernames starting with numbers - Added support for wildcard '*' in TWITTER_TARGET_USERS - Fixed test discovery in test.sh to find all .test.ts files - Updated Jest config for better ESM support The main change allows Twitter target usernames to start with numbers and use wildcards, matching current Twitter/X username rules. Test infrastructure was improved to properly handle ESM modules and find all test files. Changes: - Updated username validation regex in Twitter client - Added test cases for numeric usernames and wildcards - Switched test.sh to use find for reliable test discovery - Simplified Jest config to focus on ESM support
Already implemented in latest release. |
If you have a twitter account starting with a number, it appears to throw an error.
To Reproduce
Modify TWITTER_TARGET_USERS in youir .env file that uses an account starting with a digit
Expected behavior
No error should occur, and application should continue running
Screenshots
Error produced:
["⛔ Error: Twitter configuration validation failed:\nTWITTER_TARGET_USERS.2: Invalid Twitter username format"]
Additional context
It wasn't clear, but using true account names with the @ prefix was not the expected input either, although my assumption was to use them. Once I found it not working I tried different ways to use the field.
The text was updated successfully, but these errors were encountered: