guimatheus92 / Bot_SpaceCrypto

This is an automation (bot) to play the game SpaceCrypto, it automatically log in, send ships to fight, refresh the game, new map, etc.
14 stars 6 forks source link
autoclicker automation bot bots macro nft nft-game nfts python spacecrypto spacecrypto-bot

SpaceCrypto Bot


This is an automation (bot) to play the game SpaceCrypto, it automatically login into the game, send ships to fight, refresh the game, new map, etc.

If you find this bot helpful to you, please donate so we can continue to improve the hard work and hours spent on this 🤯.

Donation

Donations options:

Observations

Does your bot is in endless loop and it's doing nothing? So read the note below!

The problem now, is that it's not matching the same images I shared from the one you have on your screen. So you'll need to change those in order to make it work. So you'll need to replace the same images with the exactly same names in the path /static/img/game.

All images taken from the game was from a Full HD screen and scale at 100%. So if your bot is not working, make sure that your scale is at least 100%. After that, get all pictures again and save them as .png format.

Main Steps

In a breafy way you'll need to:

  1. Download Python
  2. Install python packages from requirements.txt
  3. Adjust screen scale to 100% if needed
  4. Download Brave browser (best option)
  5. Change options on config.yaml file if needed
  6. Create Telegram bot if needed

Project structure

.
└── Bot_SpaceCrypto
    ├── main.py                     # setup our app
    ├── bot.py                      # all bot movements
    ├── controllers.py              # all controllers to help the bot to run
    ├── config.yaml                 # all configurations and options to run
    └── logs                        # all log files are saved daily here
    └── static
        ├── img
            ├── game                # all images related to game to run the bot
            ├── readme              # all images related to repository
            ├── screenshot          # all images taken from screenshot (folder will create automatically)

Tutorial

The tutorial on how to install and use this bot can be found on GitHub Wiki page.

The tutorial on how to use Brave browser for this bot can be found on GitHub Wiki page.

Some settings can be changed in the config.yaml file. If you change it, don't forget to restar the bot so that the new settings are activated.

Changelog

Requirements

Browser: Brave: Version 1.34.81 Chromium: 97.0.4692.99

⚠️ I really advise you to use the Brave browser instead of others, for so many reasons, especially if you want to use multiaccount feature.

For Brave tutorial, check here.


Windows version:

Python version (Python 3.10+ versions DOES NOT work!):

Python 3.9.9

The requirements can be found in requirements.txt file also. This project utilizes the following requirements:

APScheduler==3.6.3
asyncio==3.4.3    
numpy==1.21.4
opencv-python==4.5.4.60
pandas==1.1.5
pathlib==1.0.1
Pillow==8.4.0
PyAutoGUI==0.9.53
python-telegram-bot==13.9
pywin32==303
pywinauto==0.6.8
PyYAML==6.0
requests==2.26.0
tzlocal==4.1

Monitor scale: 100%

Features

YAML file configurations and options explained

1. bot_options

2. telegram_options

3. game_options

Improvements

Conclusion

  1. Want my code? Grab it here 📎
  2. Want the tutorial of how to use it? Go to Wiki ✔️
  3. New ideas for this app? Help me to improve it ❤️
  4. Want something else added to this tutorial? Add an issue to the repo ⚠️