Skip to content

vikitoshi/FluxAI-Auto-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

FluxAI Auto Bot

A Node.js bot designed to automate image generation on the FluxAI platform using private keys and 2Captcha for reCAPTCHA solving. The bot generates images based on predefined prompts and manages daily credit limits for multiple wallets.

Register

Features

  • Automates login and image generation on the FluxAI platform.
  • Supports multiple private keys for different wallets.
  • Solves reCAPTCHA (v2 and v3) using the 2Captcha service.
  • Includes a variety of creative prompts for image generation.
  • Schedules daily runs with a countdown timer for the next execution.
  • Provides colorful console logging for better monitoring.

Prerequisites

  • Node.js (v14 or higher)
  • A 2Captcha account with an API key
  • A .env file with your 2Captcha API key and wallet private keys

Installation

  1. Clone the repository:

    git clone https://github.com/vikitoshi/FluxAI-Auto-Bot.git
    cd FluxAI-Auto-Bot
  2. Install dependencies:

    npm install
  3. Create a .env file in the project root and add your 2Captcha API key and private keys:

    2captchakey=your_2captcha_api_key
    PRIVATE_KEY_1=your_first_private_key
    PRIVATE_KEY_2=your_second_private_key

Usage

Run the bot with the default maximum of 3 image generations per wallet per day:

node index.js

The bot will:

  • Log in to the FluxAI platform using each private key.
  • Check available credits for each wallet.
  • Solve reCAPTCHA (v2 or v3) using 2Captcha.
  • Generate images based on random prompts until the maximum generations or credits are exhausted.
  • Schedule the next run 24 hours later, displaying a countdown.

Configuration

  • Prompts: The bot uses a predefined list of creative prompts for image generation. You can modify the prompts array in the code to customize them.
  • Max Generations: By default, the bot attempts up to 3 image generations per wallet per day. Adjust the maxGenerations parameter when running the script to change this.
  • reCAPTCHA: The bot first attempts to solve reCAPTCHA v2, falling back to v3 if needed. Ensure your 2Captcha API key is valid and funded.

Logging

The bot uses colored console logs for better visibility:

  • Green: Success messages and completions.
  • Yellow: Warnings (e.g., no credits left).
  • Red: Errors (e.g., login or reCAPTCHA failures).
  • Cyan: Loading states and countdown timer.
  • White: Step-by-step progress.

Troubleshooting

  • No valid private keys found: Ensure your .env file contains valid private keys prefixed with PRIVATE_KEY_.
  • 2captchakey not defined: Add your 2Captcha API key to the .env file.
  • reCAPTCHA solving fails: Verify your 2Captcha account has sufficient funds and the API key is correct.
  • Login errors: Check the FluxAI platform status and ensure your private keys are valid.

Contributing

Contributions are welcome! Please:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m "Add your feature").
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

License

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

Disclaimer

This bot is for educational purposes only. Ensure compliance with the FluxAI platform's terms of service and 2Captcha's usage policies. The author is not responsible for any misuse or consequences of using this bot.

About

A Node.js bot designed to automate image generation on the FluxAI platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published