Skip to content

ryanalmb/script-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X (Twitter) Marketing Automation Platform

⚠️ IMPORTANT DISCLAIMER

This software is provided for educational and research purposes only. Users are solely responsible for ensuring compliance with:

  • X (Twitter) Terms of Service and API policies
  • Local and international laws regarding automated marketing
  • Data protection regulations (GDPR, CCPA, etc.)
  • FTC guidelines for advertising and marketing

Use at your own risk. The developers are not responsible for any account suspensions, legal issues, or other consequences.

Overview

A comprehensive X (Twitter) marketing automation platform designed for crypto/finance marketing with multi-account management, automated content generation, and advanced analytics.

Key Features

🔐 Multi-Account Management

  • Handle 10+ X accounts simultaneously
  • Account health monitoring and suspension recovery
  • Proxy rotation and fingerprint management
  • Account warming protocols

🤖 Automated Content Generation

  • Free LLM integration (Ollama, Hugging Face)
  • Crypto/finance optimized content templates
  • Image and video content generation
  • Trending hashtag integration

📊 Advanced Analytics

  • Follower growth tracking
  • Engagement rate monitoring
  • Reach and impressions analytics
  • Conversion tracking

💬 Telegram Bot Interface

  • User-friendly command system
  • Real-time notifications
  • Content approval workflow
  • Emergency stop functions

🎯 Smart Engagement

  • Strategic following/unfollowing
  • Automated likes, retweets, replies
  • Market sentiment analysis
  • Compliance checking

Architecture

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   Frontend      │    │   Backend API   │    │   Database      │
│   (Next.js)     │◄──►│   (Node.js)     │◄──►│   (PostgreSQL)  │
└─────────────────┘    └─────────────────┘    └─────────────────┘
                              │
                              ▼
┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│  Telegram Bot   │    │  Automation     │    │   LLM Service   │
│   (Node.js)     │◄──►│   Engine        │◄──►│   (Python)      │
└─────────────────┘    └─────────────────┘    └─────────────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │   X API Client  │
                    │   (Rate Limited)│
                    └─────────────────┘

Tech Stack

  • Frontend: Next.js 14, React 18, TypeScript, Tailwind CSS
  • Backend: Node.js, Express, TypeScript
  • Database: PostgreSQL with Prisma ORM
  • LLM Integration: Python with Ollama/Hugging Face
  • Telegram Bot: node-telegram-bot-api
  • Authentication: JWT with refresh tokens
  • Deployment: Docker containers

Project Structure

x-marketing-platform/
├── frontend/                 # Next.js dashboard
├── backend/                  # Node.js API server
├── telegram-bot/            # Telegram bot service
├── llm-service/             # Python LLM integration
├── automation-engine/       # Core automation logic
├── database/               # Database schemas and migrations
├── docker/                 # Docker configurations
└── docs/                   # Documentation

Quick Start

  1. Clone the repository
git clone <repository-url>
cd x-marketing-platform
  1. Install dependencies
npm run install:all
  1. Set up environment variables
cp .env.example .env
# Edit .env with your configuration
  1. Start the development environment
docker-compose up -d
npm run dev

Environment Variables

# Database
DATABASE_URL="postgresql://user:password@localhost:5432/x_marketing"

# X API (Twitter)
X_API_KEY="your_api_key"
X_API_SECRET="your_api_secret"
X_BEARER_TOKEN="your_bearer_token"

# Telegram Bot
TELEGRAM_BOT_TOKEN="your_bot_token"

# LLM Configuration
OLLAMA_HOST="http://localhost:11434"
HUGGINGFACE_API_KEY="your_hf_key"

# Security
JWT_SECRET="your_jwt_secret"
ENCRYPTION_KEY="your_encryption_key"

# Proxy Configuration
PROXY_PROVIDER="your_proxy_provider"
PROXY_USERNAME="proxy_username"
PROXY_PASSWORD="proxy_password"

Legal and Compliance

Terms of Service Compliance

  • Respects X API rate limits
  • Implements proper attribution
  • Avoids spam and manipulation
  • Follows content policies

Data Protection

  • GDPR compliant data handling
  • User consent management
  • Data retention policies
  • Secure data storage

Marketing Compliance

  • FTC disclosure requirements
  • Transparent advertising practices
  • Opt-out mechanisms
  • Content authenticity

Risk Mitigation

  1. Account Safety

    • Gradual activity ramping
    • Human-like behavior patterns
    • Proxy rotation
    • Browser fingerprint management
  2. Rate Limiting

    • Intelligent request spacing
    • Queue management
    • Fallback mechanisms
    • Error handling
  3. Content Quality

    • AI-generated content review
    • Compliance checking
    • Manual approval workflows
    • Quality scoring

Support

For questions, issues, or contributions:

  • Create an issue on GitHub
  • Join our Telegram support group
  • Check the documentation in /docs

License

This project is licensed under the MIT License - see the LICENSE file for details.


Remember: Always use this tool responsibly and in compliance with all applicable laws and platform terms of service.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published