Skip to content

Latest commit

 

History

History
80 lines (67 loc) · 4.44 KB

README-EN.md

File metadata and controls

80 lines (67 loc) · 4.44 KB

img1

🇷🇺 README на русском доступен здесь

Functionality

Functional Supported
Multithreading
Binding a proxy to a session
Auto-purchase of items if you have coins (tap, energy, charge)
Random sleep time between clicks
Random number of clicks per request
Support tdata / pyrogram .session / telethon .session
Настройка Описание
API_ID / API_HASH Platform data from which to launch a Telegram session (stock - Android)
MIN_AVAILABLE_ENERGY Minimum amount of available energy, upon reaching which there will be a delay (eg 100)
SLEEP_BY_MIN_ENERGY Delay when reaching minimum energy in seconds (eg [1800,2400])
AUTO_UPGRADE Whether to upgrade the passive earn (True / False)
MAX_LEVEL Maximum upgrade level (eg 20)
BALANCE_TO_SAVE Balance limit that the bot “won't touch” (eg 1000000)
UPGRADES_COUNT The count of cards that the bot will upgrade in 1 lap (eg 10)
APPLY_DAILY_ENERGY Whether to use the daily free energy boost (True / False)
APPLY_DAILY_TURBO Whether to use the daily free turbo boost (True / False)
RANDOM_CLICKS_COUNT Random number of taps (eg [50,200])
SLEEP_BETWEEN_TAP Random delay between taps in seconds (eg [10,25])
USE_PROXY_FROM_FILE Whether to use proxy from the bot/config/proxies.txt file (True / False)

Quick Start 📚

  1. To install libraries on Windows click on INSTALL.bat.
  2. To start the bot use START.bat (or in console: python main.py).

Prerequisites

Before you begin, ensure you have the following installed:

Obtaining API Keys

  1. Go to my.telegram.org and log in using your phone number.
  2. Select "API development tools" and fill out the form to register a new application.
  3. Note down the API_ID and API_HASH in .env file provided after registering your application.

Installation

You can download Repository by cloning it to your system and installing the necessary dependencies:

~ >>> git clone https://github.com/shamhi/HamsterKombatBot.git
~ >>> cd HamsterKombatBot

#Linux
~/HamsterKombatBot >>> python3 -m venv venv
~/HamsterKombatBot >>> source venv/bin/activate
~/HamsterKombatBot >>> pip3 install -r requirements.txt
~/HamsterKombatBot >>> cp .env-example .env
~/HamsterKombatBot >>> nano .env # Here you must specify your API_ID and API_HASH , the rest is taken by default
~/HamsterKombatBot >>> python3 main.py

#Windows
~/HamsterKombatBot >>> python -m venv venv
~/HamsterKombatBot >>> venv\Scripts\activate
~/HamsterKombatBot >>> pip install -r requirements.txt
~/HamsterKombatBot >>> copy .env-example .env
~/HamsterKombatBot >>> # Specify your API_ID and API_HASH, the rest is taken by default
~/HamsterKombatBot >>> python main.py

Installing as a Linux service for running the bot in the background here.

Also for quick launch you can use arguments, for example:

~/HamsterKombatBot >>> python3 main.py --action (1/2)
# Or
~/HamsterKombatBot >>> python3 main.py -a (1/2)

#1 - Create session
#2 - Run clicker

Install as service on Linux