Skip to content

Aranthus/agent-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Twitter AI Bot

An AI-powered Twitter bot that monitors and engages with tweets from specific accounts in the crypto/web3 ecosystem.

Features

  • 🤖 AI-powered responses using OpenAI GPT
  • 🔄 Automatic tweet monitoring and engagement
  • 💬 Smart replies and quote tweets
  • 🔍 Focused monitoring of specific accounts
  • 🍪 Cookie-based authentication
  • ⏱️ Rate limiting and natural delays
  • 🗃️ Tweet history management

Setup

  1. Install dependencies:
npm install
  1. Create a .env file with your credentials:
OPENAI_API_KEY=your_openai_api_key
TWITTER_USERNAME=your_twitter_username
TWITTER_PASSWORD=your_twitter_password
TWITTER_EMAIL=your_twitter_email
  1. Run the bot:
node twitter-bot.js

Configuration

The bot can be configured by modifying the following in twitter-bot.js:

  • ecosystemConfig: List of accounts to monitor
  • retweetKeywords: Keywords that trigger quote tweets
  • actionDelay: Delay between actions (default: 1 minute)

Features

Tweet Monitoring

  • Monitors specified accounts for new tweets
  • Checks tweets from the last week
  • Maintains tweet history to avoid duplicates

Engagement

  • Likes new tweets
  • Generates AI-powered replies using OpenAI
  • Creates quote tweets for important announcements
  • Natural delays between actions to avoid rate limits

Authentication

  • Uses cookie-based authentication
  • Saves and reuses cookies to avoid frequent logins
  • Handles session management automatically

Dependencies

  • openai: For generating AI responses
  • elizaos: For Twitter interaction without API
  • dotenv: For environment variable management
  • fs: For file system operations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published