Get the BTB Finance AI Bot running in 5 minutes!
- Node.js v16+ installed
- Twitter Developer account
- OpenRouter account with API key
- Git installed
git clone https://github.com/btb-finance/autonomous-ai-agent.git
cd autonomous-ai-agent
npm install- Visit https://developer.twitter.com
- Go to your app settings
- Enable "Read and write" permissions in OAuth 1.0a settings
- Copy your credentials
cp .env.example .envEdit .env with your credentials:
TWITTER_API_KEY=your_key
TWITTER_API_SECRET=your_secret
TWITTER_ACCESS_TOKEN=your_token
TWITTER_ACCESS_TOKEN_SECRET=your_token_secret
TWITTER_BEARER_TOKEN=your_bearer_token
OPENROUTER_API_KEY=your_openrouter_key
npm run test:tweetnpm run devThe bot will:
- Monitor Twitter for mentions containing "$BTB"
- Extract questions from tweets
- Search its knowledge base
- Generate AI responses using Claude 3.5 Sonnet
- Reply automatically to tweets
→ Your Twitter app needs "Read and write" permissions
→ Check your API credentials in .env
→ Bot will automatically wait and retry
- Open an issue on GitHub
- Tweet @btb_finance
- Join our Telegram: https://t.me/BTBFinance
Happy botting! 🎉