/hamster-generator-code

A script for generating promo codes using the GamePromo API. This tool supports multiple games and proxies, and it displays progress in a visually appealing manner.

Primary LanguagePython

Hamster Kombat Promo Code Generator

image

A script for generating promo codes using the GamePromo API. This tool supports multiple games and proxies, and it displays progress in a visually appealing manner.

TELEGRAM CHANNEL | TWITTER

Send me a thankyou 💪

0x705C71fc031B378586695c8f888231e9d24381b4 - EVM
TDTtTc4hSnK9ii1VDudZij8FVK2ZtwChja - TRON
UQBy7ICXV6qFGeFTRWSpnMtoH6agYF3PRa5nufcTr3GVOPri - TON

Summary ( Latest Update on 08 - 18 - 2024 )

  • Fix Random Game Selection
  • Add Multiple Game Selection
  • Add Proxy Sock5 Support

if "random_selection": false, will choose game from "selected_games": ["2","6"], you can add more selections by adding more number. example : "selected_games": ["2","6","3"]

Features

  • Generate promo codes for various games.
  • Support for proxy usage.
  • Display progress percentage during the process.
  • Configurable settings via configs.json.
  • Output results to promo.txt.

Table of Contents

Installation

To get started, clone this repository and install the required dependencies:

  1. Clone the repository:

    git clone https://github.com/jawikas/hamster-generator-code.git
    cd hamster-generator-code

Create a virtual environment (optional but recommended):

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Install the dependencies:

pip install -r requirements.txt

Configuration

Create configs.json:

This file should be located in the root directory of the project. Here is a sample configuration:

{
    "key_count": 11,
    "countdown_delay": 11,
    "use_proxies": false,
    "random_selection": true,
    "selected_games": ["2","6"],
    "games": {
        "1": {
            "name": "Riding Extreme 3D",
            "appToken": "d28721be-fd2d-4b45-869e-9f253b554e50",
            "promoId": "43e35910-c168-4634-ad4f-52fd764a843f"
        },
        "2": {
            "name": "Chain Cube 2048",
            "appToken": "d1690a07-3780-4068-810f-9b5bbf2931b2",
            "promoId": "b4170868-cef0-424f-8eb9-be0622e8e8e3"
        },
        "3": {
            "name": "My Clone Army",
            "appToken": "74ee0b5b-775e-4bee-974f-63e7f4d5bacb",
            "promoId": "fe693b26-b342-4159-8808-15e3ff7f8767"
        },
        "4": {
            "name": "Train Miner",
            "appToken": "82647f43-3f87-402d-88dd-09a90025313f",
            "promoId": "c4480ac7-e178-4973-8061-9ed5b2e17954"
        },
        "5": {
            "name": "MergeAway",
            "appToken": "8d1cc2ad-e097-4b86-90ef-7a27e19fb833",
            "promoId": "dc128d28-c45b-411c-98ff-ac7726fbaea4"
        },
        "6": {
            "name": "Twerk Race 3D",
            "appToken": "61308365-9d16-4040-8bb0-2f4a4c69074c",
            "promoId": "61308365-9d16-4040-8bb0-2f4a4c69074c"
        }
    }
}

Create proxies.txt (if using proxies):

List your proxies in the following format:

username:password@host:port

Usage

To run the promo code generator:

python main.py

The script will generate promo codes based on the configuration in configs.json and save them to promo.txt.

Progress Display The script displays a progress bar to show the percentage completion of the promo code generation process.

How It Works

  1. Configuration Loading:

    • The script loads configurations from configs.json.
  2. Proxy Handling:

    • If proxies are enabled, the script will use proxies from proxies.txt.
  3. Promo Code Generation:

    • The script logs in using the GamePromo API.
    • Emulates progress and generates promo codes based on the configured game and count.
  4. Progress Tracking:

    • The progress is displayed in the console with a progress bar.

License

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

Contact For any questions or issues, please open an issue on GitHub or contact me at [ https://t.me/itsjaw_real ]..