-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0661be3
Showing
13 changed files
with
470 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
webdriver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
API_ID= | ||
API_HASH= | ||
|
||
MIN_AVAILABLE_ENERGY= | ||
SLEEP_BY_MIN_ENERGY= | ||
|
||
ADD_TAPS_ON_TURBO= | ||
|
||
AUTO_UPGRADE_TAP= | ||
MAX_TAP_LEVEL= | ||
AUTO_UPGRADE_ENERGY= | ||
MAX_ENERGY_LEVEL= | ||
AUTO_UPGRADE_CHARGE= | ||
MAX_CHARGE_LEVEL= | ||
|
||
AUTO_UPGRADE_TOWN= | ||
MAX_TOWN_LEVEL= | ||
|
||
APPLY_DAILY_ENERGY= | ||
APPLY_DAILY_TURBO= | ||
|
||
RANDOM_TAPS_COUNT= | ||
SLEEP_BETWEEN_TAP= | ||
USE_PROXY_FROM_FILE= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
cover/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# DB | ||
sessions/ | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
.pybuilder/ | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
# For a library or package, you might want to ignore these files since the code is | ||
# intended to run in multiple environments; otherwise, check them in: | ||
# .python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# poetry | ||
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. | ||
# This is especially recommended for binary packages to ensure reproducibility, and is more | ||
# commonly ignored for libraries. | ||
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control | ||
#poetry.lock | ||
|
||
# pdm | ||
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. | ||
#pdm.lock | ||
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it | ||
# in version control. | ||
# https://pdm.fming.dev/#use-with-ide | ||
.pdm.toml | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
# Cython debug symbols | ||
cython_debug/ | ||
|
||
# PyCharm | ||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can | ||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore | ||
# and can be added to the global gitignore or merged into this file. For a more nuclear | ||
# option (not recommended) you can uncomment the following to ignore the entire idea folder. | ||
.idea/ | ||
webdriver/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM python:3.11.4-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
RUN apt update && apt install -y \ | ||
wget \ | ||
curl \ | ||
gnupg \ | ||
apt-transport-https \ | ||
ca-certificates | ||
|
||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' && \ | ||
apt update && \ | ||
apt install -y google-chrome-stable && \ | ||
apt clean | ||
|
||
RUN pip3 install --upgrade pip setuptools wheel | ||
RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt | ||
|
||
CMD ["python3", "main.py", "-a", "2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@echo off | ||
echo Creating virtual environment... | ||
python -m venv venv | ||
echo Activating virtual environment... | ||
call venv\Scripts\activate | ||
echo Installing dependencies... | ||
pip install -r requirements.txt | ||
echo Copying .env-example to .env... | ||
copy .env-example .env | ||
echo Please edit the .env file to add your API_ID and API_HASH. | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
[<img src="https://img.shields.io/badge/Telegram-%40Me-orange">](https://t.me/sho6ot) | ||
|
||
|
||
![img1](.github/images/demo.png) | ||
|
||
> 🇷🇺 README на русском доступен [здесь](README.md) | ||
## 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 | ✅ | | ||
|
||
## [Settings](https://github.com/shamhi/TapSwapBot/blob/main/.env-example) | ||
| Настройка | Описание | | ||
|--------------------------|------------------------------------------------------------------------------------------| | ||
| **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])_ | | ||
| **ADD_TAPS_ON_TURBO** | How many taps will be added when turbo is activated _(eg 2500)_ | | ||
| **AUTO_UPGRADE_TAP** | Should I improve the tap _(True / False)_ | | ||
| **MAX_TAP_LEVEL** | Maximum level of tap pumping _(up to 20)_ | | ||
| **AUTO_UPGRADE_ENERGY** | Should I improve the energy _(True / False)_ | | ||
| **MAX_ENERGY_LEVEL** | Maximum level of energy pumping _(up to 20)_ | | ||
| **AUTO_UPGRADE_CHARGE** | Should I improve the charge _(True / False)_ | | ||
| **MAX_CHARGE_LEVEL** | Maximum level of charge pumping _(up to 5)_ | | ||
| **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: | ||
- [Python](https://www.python.org/downloads/) version 3.10 or 3.11 | ||
|
||
## Obtaining API Keys | ||
1. Go to [my.telegram.org](https://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**](https://github.com/shamhi/TapSwapBot) by cloning it to your system and installing the necessary dependencies: | ||
```shell | ||
~ >>> git clone https://github.com/shamhi/TapSwapBot.git | ||
~ >>> cd TapSwapBot | ||
|
||
# If you are using Telethon sessions, then clone the "converter" branch | ||
~ >>> git clone https://github.com/shamhi/TapSwapBot.git -b converter | ||
~ >>> cd TapSwapBot | ||
|
||
#Linux | ||
~/TapSwapBot >>> python3 -m venv venv | ||
~/TapSwapBot >>> source venv/bin/activate | ||
~/TapSwapBot >>> pip3 install -r requirements.txt | ||
~/TapSwapBot >>> cp .env-example .env | ||
~/TapSwapBot >>> nano .env # Here you must specify your API_ID and API_HASH , the rest is taken by default | ||
~/TapSwapBot >>> python3 main.py | ||
|
||
#Windows | ||
~/TapSwapBot >>> python -m venv venv | ||
~/TapSwapBot >>> venv\Scripts\activate | ||
~/TapSwapBot >>> pip install -r requirements.txt | ||
~/TapSwapBot >>> copy .env-example .env | ||
~/TapSwapBot >>> # Specify your API_ID and API_HASH, the rest is taken by default | ||
~/TapSwapBot >>> python main.py | ||
``` | ||
|
||
Also for quick launch you can use arguments, for example: | ||
```shell | ||
~/TapSwapBot >>> python3 main.py --action (1/2/3) | ||
# Or | ||
~/TapSwapBot >>> python3 main.py -a (1/2/3) | ||
|
||
#1 - Create session | ||
#2 - Run clicker | ||
#3 - Run via Telegram | ||
``` |
Oops, something went wrong.