Warning
Use at your own risk
notpx is a full-featured bot for NotPixel.
- Setting pixels at specified coordinates (coords in
result.json
) - Auto collection of tokens
- Auto upgrade boosts
- Auto use fast recharge boost if exists
- Saving screenshots of the map (if necessary, additionally run the
bun run map
file) - Draw by template (disabled by default)
- Automatic image conversion to coordinates (Not all images are supported, read more below!!!)
- Functions have been made for the entire NotPixel API, if something is missing in the bot, you can easily add it without even getting into the game itself
- All tasks are delayed. Every account has its own user agent
- The bot works linearly, i.e. it goes along the line until it finishes the cycle
Have fun :)
-
Install Bun.sh (<=1.1.29)
For windows:
iex "& {$(irm https://bun.sh/install.ps1)} -Version 1.1.29"
For linux:
curl -fsSL https://bun.sh/install | bash -s "bun-v1.1.29"
-
Install dependencies:
bun install
- Add sessions (read below)
- Configure bot in the config in
src/config.ts
- Fill pixels data in
result.json
and setinitialPos
- Run:
bun start
- (Optional) Run screenshoter:
bun map
The coordinates are above the button to set the pixel, the first coordinate is X, the second is Y.
E.g.: 111, 414
- 111 it's X, 414 it's Y.
You may have to manually launch the not pixel app for the 1st time
- auth data lifetime - ~30 min
- Login to my.telegram.org
- Go to "Api development tools"
- Create new Application by filling in the fields as shown in the picture
- Copy the
api_id
andapi_hash
- Insert
api_id
andapi_hash
to.example.env
- Rename
.example.env
to.env
Supported Pyrogram and Telethon v1.x sessions
- Create
sessions
folder near the package.json file (not in./src
) - Place
.session
files in./sessions
folder (not in./src/sessions
) - Run
bun sessions:parse
- Done
- Run
bun sessions:add
- Enter the required data in the console
- Done
The bot supports only http and https proxies. I haven't tested it
- Open
src/config.ts
- Add proxy string to
proxy
array
...
proxy: ["https://...:443", "http://...:8053"],
...
Add a template to NotPixel or find any one you like.
When the bot is launched, as well as every 20-80 minutes (configurable), the template will be automatically updated according to the specified templateId. There may be minimal inaccuracies, because image automatic converted to pixels by Bot.
-
Get template id
- Open Desktop version
- Go to templates and select your template
- Open DevTools and select image
- Find templateId
-
Open
.env
(read above) -
Insert TEMPLATE_ID to
TEMPLATE_ID
field in .env
- Set USE_TEMPLATE field to
true
(default:false
)
- Done
Caution
The image should be as clear as possible and have only the colors specified in the src/types/pixels.ts
file (transparent supported).
The resolution of the image must match the resolution of what you are drawing. If you want to draw 32x32, then the picture should also be 32x32, etc.
Only .png
is supported!
It's best if you draw the image in Figma and export it to .png
there.
- Copy your image to the parent folder and name it
result.png
- Run script:
bun ocr
- Go to the
result.txt
file and check if the image looks right (sometimes it may look crooked, but the final result will be normal) - Set the coordinates to start drawing on the canvas in
result.json
:
In this example, change 141 to X coordinate, 309 to Y coordinate of canvas
- Save the file
- Open
.env
(read above) - Set USE_TEMPLATE field to
false
(default:false
)
- Done
Everything is at your own risk. I don't recommend using it on the main accounts.