Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
protonmeacc authored Oct 13, 2024
1 parent 79e34ba commit 872c603
Show file tree
Hide file tree
Showing 30 changed files with 1,666 additions and 71 deletions.
25 changes: 16 additions & 9 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,21 @@ API_HASH=

SLEEP_TIME=
START_DELAY=
AUTO_PAINT=
AUTO_MINING=
ERROR_THRESHOLD=
TIME_WINDOW_FOR_MAX_ERRORS=
ERROR_THRESHOLD_SLEEP_DURATION=
SLEEP_AFTER_EACH_ERROR=
AUTO_TASK=
TASKS_TO_DO=
AUTO_DRAW=
JOIN_TG_CHANNELS=
CLAIM_REWARD=
AUTO_UPGRADE=
AUTO_UPGRADE_PAINT=
MAX_PAINT_LEVEL=
AUTO_UPGRADE_CHARGE=
MAX_CHARGE_LEVEL=
AUTO_UPGRADE_ENERGY=
MAX_ENERGY_LEVEL=
REF_ID=
REF_ID=
IGNORED_BOOSTS=
IN_USE_SESSIONS_PATH=
PALETTE=
DRAW_IMAGE=
DRAWING_START_COORDINATES=
IMAGE_PATH=
ENABLE_3X_REWARD=
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.env

sessions/

app_data/*
!app_data/.gitkeep

.idea/

__pycache__

*.session

*.cpython-310.pyc
Binary file added 10x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.10.11-alpine3.18

WORKDIR app/

COPY requirements.txt requirements.txt

RUN pip3 install --upgrade pip setuptools wheel
RUN pip3 install --no-warn-script-location --no-cache-dir -r requirements.txt

COPY . .

CMD ["python3", "main.py", "-a", "1"]
127 changes: 68 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,54 @@
[![Static Badge](https://img.shields.io/badge/Telegram-Bot%20Link-Link?style=for-the-badge&logo=Telegram&logoColor=white&logoSize=auto&color=blue)](https://t.me/notpixel/app?startapp=f411905106)

## Recommendation before use

# 🔥🔥 Use PYTHON 3.10 🔥🔥
## ⚡⚡ Get 3x rewards with fully automatic art parsing and smart pixel selection 🆕 ⚡⚡

## Recommendation before use

## 🔥🔥 Use PYTHON 3.10 🔥🔥

## Features
| Feature | Supported |
|-----------------------------------------------------------|:---------:|
| Multithreading ||
| Proxy binding to session ||
| User-Agent binding to session ||
| Support for tdata / pyrogram .session / telethon .session ||
| Registration in bot ||
| Auto-paint ||
| Auto-tasks ||
| Auto-claim mining rewards ||
| Auto-upgrade boosters ||




## [Settings]
| Settings | Description |
|-------------------------|:---------------------------------------------------------------------------:|
| **API_ID / API_HASH** | Platform data from which to run the Telegram session (by default - android) |
| **SLEEP_TIME** | Sleep time between cycles (by default - [3200, 3600]) |
| **START_DELAY** | Delay between sessions at start (by default - [5, 20]) |
| **AUTO_PAINT** | Auto painting (by default - True) |
| **AUTO_UPGRADE** | Auto upgrade boosters (by default - True) |
| **AUTO_MINING** | Auto claim mining reward (by default - True) |
| **AUTO_TASK** | Auto tasks (by default - True) |
| **AUTO_UPGRADE_PAINT** | Auto upgrade paint reward (by default - True) |
| **MAX_PAINT_LEVEL** | Max level for paint booster (by default - 5) |
| **AUTO_UPGRADE_CHARGE** | Auto upgrade recharge speed (by default - True) |
| **MAX_CHARGE_LEVEL** | Max level for recharge booster (by default - 5) |
| **AUTO_UPGRADE_ENERGY** | Auto upgrade energy limit (by default - True) |
| **MAX_ENERGY_LEVEL** | Max level for energy booster (by default - 2) |
| **REF_ID** | Ref link for registration |
| Feature | Supported |
|----------------------------------------------------------|:---------:|
| Asynchronous processing ||
| Proxy binding to session ||
| User-Agent binding to session ||
| Support pyrogram .session ||
| Registration in bot ||
| Auto-tasks ||
| Daily rewards ||
| Pause feature on reaching maximum error threshold 🆕 ||
| Drawing specified image 🆕 ||
| Fully automatic art parsing and smart pixel selection 🆕 ||

## Settings
| **Parameter** | **Description** |
|------------------------------------|:----------------------------------------------------------------|
| **API_ID / API_HASH** | Your API_ID / API_HASH |
| **SLEEP_TIME** | Sleep time between cycles (by default - [426, 4260]) |
| **START_DELAY** | Delay between sessions at start (by default - [1, 240]) |
| **ERROR_THRESHOLD** | Maximum number of errors allowed before action (default - 5) |
| **TIME_WINDOW_FOR_MAX_ERRORS** | Time duration in which the maximum error count can be reached |
| **ERROR_THRESHOLD_SLEEP_DURATION** | Sleep duration after reaching the maximum error threshold |
| **SLEEP_AFTER_EACH_ERROR** | Sleep time after each individual error occurrence |
| **AUTO_DRAW** | Auto-drawing pixels (default - True) |
| **AUTO_UPGRADE** | Auto-upgrading your mining stuff (default - True) |
| **CLAIM_REWARD** | Claim daily reward (default - True) |
| **AUTO_TASK** DANGEROUS | Auto tasks (default - True) |
| **TASKS_TO_DO** AUTOTASK | List of tasks for auto-task (default - all tasks) |
| **JOIN_TG_CHANNELS** | Automatically join Telegram channels (default - True) |
| **REF_ID** | Thing that goes after startapp= |
| **IGNORED_BOOSTS** | List of boosts to ignore (default - empty list) |
| **IN_USE_SESSIONS_PATH** | Path to the file where the currently active sessions are stored |
| **PALETTE** | List of colors used for drawing |
| **DRAW_IMAGE** | Enable drawing of specified image (default - False) |
| **DRAWING_START_COORDINATES** | Starting coordinates for drawing the image (e.g., [10, 5]) |
| **IMAGE_PATH** | Path to the image file to be drawn |
| **ENABLE_3X_REWARD** | Enable or disable the 3x reward feature (default - True) |


## Quick Start 📚

To fast install libraries and run bot - open run.bat on Windows or run.sh on Linux
To quickly install libraries and run the bot - open `run.bat` on Windows or `run.sh` on Linux.

## Prerequisites
Before you begin, make sure you have the following installed:
Expand All @@ -51,46 +57,53 @@ Before you begin, make sure 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. Record the API_ID and API_HASH provided after registering your application in the .env file.
3. Record the `API_ID` and `API_HASH` provided after registering your application in the `.env` file.

## Installation
You can download the [**repository**](https://github.com/WubbaLubbaDubDubDev/notpixel_bot_advanced) by cloning it to your system and installing the necessary dependencies:
git clone https://github.com/WubbaLubbaDubDubDev/notpixel_bot_advanced


Then you can do automatic installation by typing:

### Windows:
```shell
./run.bat
```

### Linux:
```shell
chmod +x run.sh
./run.sh
```

### Running in Docker

To run the project in Docker, navigate to the root directory of the script and execute the following command:
```shell
docker-compose up --build
```

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

You can also use arguments for quick start, for example:
```shell
~/NotPixelBot >>> python3 main.py --action (1/2)
# Or
~/NotPixelBot >>> python3 main.py -a (1/2)

# 1 - Run clicker
# 2 - Creates a session
```

# Windows manual installation
## Windows manual installation
```shell
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
copy .env-example .env
# Here you must specify your API_ID and API_HASH, the rest is taken by default
python main.py
```

You can also use arguments for quick start, for example:
```shell
~/NotPixelBot >>> python main.py --action (1/2)
# Or
~/NotPixelBot >>> python main.py -a (1/2)

# 1 - Run clicker
# 2 - Creates a session
```
Expand All @@ -110,7 +123,3 @@ Here is an example of what accounts.json should look like:
}
]
```




1 change: 1 addition & 0 deletions bot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0'
1 change: 1 addition & 0 deletions bot/config/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .config import settings
36 changes: 36 additions & 0 deletions bot/config/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from pydantic_settings import BaseSettings, SettingsConfigDict


class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", env_ignore_empty=True)

API_ID: int
API_HASH: str

SLEEP_TIME: list[int] = [426, 4260]
START_DELAY: list[int] = [1, 240]
ERROR_THRESHOLD: int = 5
TIME_WINDOW_FOR_MAX_ERRORS: int = 240
ERROR_THRESHOLD_SLEEP_DURATION: int = 3600
SLEEP_AFTER_EACH_ERROR: int = 30
AUTO_TASK: bool = False
TASKS_TO_DO: list[str] = ["paint20pixels", "x:notpixel", "x:notcoin", "channel:notcoin", "channel:notpixel_channel"]
AUTO_DRAW: bool = True
JOIN_TG_CHANNELS: bool = True
CLAIM_REWARD: bool = True
AUTO_UPGRADE: bool = True
REF_ID: str = 'f411905106'
IGNORED_BOOSTS: list[str] = []
IN_USE_SESSIONS_PATH: str = 'app_data/used_sessions.txt'
PALETTE: list[str] = ["#e46e6e", "#FFD635", "#7EED56", "#00CCC0", "#51E9F4", "#94B3FF", "#E4ABFF",
"#FF99AA", "#FFB470", "#FFFFFF", "#BE0039", "#FF9600", "#00CC78", "#009EAA",
"#3690EA", "#6A5CFF", "#B44AC0", "#FF3881", "#9C6926", "#898D90", "#6D001A",
"#bf4300", "#00A368", "#00756F", "#2450A4", "#493AC1", "#811E9F", "#a00357",
"#6D482F", "#000000"]
DRAW_IMAGE: bool = False
DRAWING_START_COORDINATES: list[int] = [0, 0]
IMAGE_PATH: str = "10x10.png"
ENABLE_3X_REWARD: bool = True


settings = Settings()
101 changes: 101 additions & 0 deletions bot/config/upgrades.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
upgrades = {
"paintReward": {
"levels": {
2: {
"Price": 5,
"Boost": 1.5
},
3: {
"Price": 100,
"Boost": 2
},
4: {
"Price": 200,
"Boost": 2.5
},
5: {
"Price": 300,
"Boost": 3
},
6: {
"Price": 500,
"Boost": 3.5
},
7: {
"Price": 600,
"Boost": 4,
"Max": True
}
}
},
"reChargeSpeed": {
"levels": {
2: {
"Price": 5,
"ChargeBoost": 57e4
},
3: {
"Price": 100,
"ChargeBoost": 54e4
},
4: {
"Price": 200,
"ChargeBoost": 51e4
},
5: {
"Price": 300,
"ChargeBoost": 48e4
},
6: {
"Price": 400,
"ChargeBoost": 45e4
},
7: {
"Price": 500,
"ChargeBoost": 42e4
},
8: {
"Price": 600,
"ChargeBoost": 39e4
},
9: {
"Price": 700,
"ChargeBoost": 36e4
},
10: {
"Price": 800,
"ChargeBoost": 33e4
},
11: {
"Price": 900,
"ChargeBoost": 3e5,
"Max": True
}
}
},
"energyLimit": {
"levels": {
2: {
"Price": 5,
"Boost": 6
},
3: {
"Price": 100,
"Boost": 7
},
4: {
"Price": 200,
"Boost": 8
},
5: {
"Price": 300,
"Boost": 9
},
6: {
"Price": 400,
"Boost": 10,
"Max": True
}
}
}
}
Empty file added bot/core/__init__.py
Empty file.
Loading

0 comments on commit 872c603

Please sign in to comment.