### Run Eliza Twitter Client Tests (Bash) Source: https://github.com/elizaos-plugins/client-twitter/blob/main/README.md Provides Bash commands for running unit tests and enabling debug logging for the Eliza Twitter/X client package using pnpm. These commands are useful for verifying functionality and troubleshooting issues during development. ```bash # Run tests pnpm test # Run with debug logging DEBUG=eliza:* pnpm start ``` -------------------------------- ### Initialize Eliza Twitter Client Plugin (TypeScript) Source: https://github.com/elizaos-plugins/client-twitter/blob/main/README.md Demonstrates how to import the Twitter client interface and register the Twitter plugin with the Eliza runtime, making the client available for use within the agent. This is a necessary step to activate the Twitter integration. ```typescript import { TwitterClientInterface } from "@elizaos/twitter"; const twitterPlugin = { name: "twitter", description: "Twitter client", clients: [TwitterClientInterface], }; // Register with your Eliza runtime runtime.registerPlugin(twitterPlugin); ``` -------------------------------- ### Configure Twitter Client Environment Variables (Bash) Source: https://github.com/elizaos-plugins/client-twitter/blob/main/README.md Defines the environment variables required to configure the Eliza Twitter/X client, including API credentials, client settings, post generation, action processing, Spaces, and optional approval workflow. These variables should be stored in a `.env` file. ```bash # Twitter API Credentials TWITTER_USERNAME= TWITTER_PASSWORD= TWITTER_EMAIL= TWITTER_2FA_SECRET= # Twitter Client Configuration TWITTER_DRY_RUN=false MAX_TWEET_LENGTH=280 TWITTER_SEARCH_ENABLE=false TWITTER_RETRY_LIMIT=5 TWITTER_POLL_INTERVAL=120 TWITTER_TARGET_USERS= # Post Generation Settings ENABLE_TWITTER_POST_GENERATION=true POST_INTERVAL_MIN=90 POST_INTERVAL_MAX=180 POST_IMMEDIATELY=false # Action Processing ENABLE_ACTION_PROCESSING=false ACTION_INTERVAL=5 MAX_ACTIONS_PROCESSING=1 # Spaces Configuration (Optional) TWITTER_SPACES_ENABLE=false ELEVENLABS_XI_API_KEY= # Approval Workflow (Optional) TWITTER_APPROVAL_DISCORD_BOT_TOKEN= TWITTER_APPROVAL_DISCORD_CHANNEL_ID= TWITTER_APPROVAL_CHECK_INTERVAL=300000 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.