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

feat(twitter): allow leading numbers and wildcard in target usernames #1801

Closed

Conversation

augchan42
Copy link
Contributor

Fix for #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

To run test added for this fix, run:

pnpm test client-twitter

My discord username: hosermage

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
@shakkernerd
Copy link
Member

Already implemented!

@shakkernerd shakkernerd closed this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants