Bot SpaceCrypto - An automation (bot) to play the game SpaceCrypto, it automatically log in, send ships to fight, refresh the game, new map, etc

Overview

SpaceCrypto Bot

  • [en-us] In order to change to english Readme version click here.
  • [pt-br] Para alterar para a versão Readme em português, clique aqui.

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:

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

  • 17/02/2022:
    • Improved the function to send pictures to Telegram
    • Improved the way it was looking for errors on game
    • Improved function to find the button confirm
  • 16/02/2022: Released bot first version

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:

  • Windows 10
  • Windows 11

Python version:

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%

Observations

  • Check Requirements topic to make sure in what environment, tools and versions we know that it works.
  • I suggest you to turn off the feature News and interests from Windows, because the mouse might pass through it and click in some card without us know. You can turn off this feature from Turn news and interests feature on and off guide.
  • 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.

Features

  • Schedule the refresh of the game in a period of time
  • Schedule sending ships to fight in a period of time
  • Delete old files and folders if you want automatically
  • Connect into wallet
  • Connect, signin, unlock Metamask
  • Check if is there new map available
  • Take screenshot of errors, new maps, sending to fight, etc
  • Send Telegram message
  • Works with as many accounts as you need

YAML file configurations and options explained

1. bot_options

  • create_logfiles: You can enable the creation of log in files availabe in the folder logs
  • delete_old_logfiles: You can enable the deletion of old log files and keep today's date file.
  • delete_old_folders: You can enable the deletion of older folders and keep today's date folders.
  • enable_multiaccount: You can enable the multiaccount feature.
  • multiaccount_names: You can set the account/profile names from Brave browser in each line.
  • refresh_browser_time: You can set the time where the browser will be refreshed by the keys: CTRL + SHIFT + R 1.1 metamask_options
    • enable_login_metamask: You can enable the login in Metamask when it's locked and needs password to unlock
    • metamask_password: If enable_login_metamask option is set to True, you can pass the password to unlock Metamask.

2. telegram_options

  • telegram_integration: You can enable the integration from log messages to Telegram messages as well
  • telegram_token: If telegram_integration is set to True, you can pass the token from your Telegram bot.
  • telegram_chatid: If telegram_integration is set to True, you can pass the chat_id number from your Telegram bot. Once the number is wrote, it doesn't change anymore.

3. game_options

  • work_ships_options: You can set the fight mode for your ships.
    • The option all send all ships to fight, whenever the fight button is available.
    • The option full send all ships to fight regardless of the rarity and only when the ammo is 100%.
  • work_ships_time: You can set the time when bot will send ships to fight automatically.
  • refresh_ships_time: You can set the time when bot will just refresh the game, so the game don't disconnect.
  • chest_screenshot_time: You can set the time when bot will take a screenshot from your coins from the game.
  • clicks_count: You can set how many ships you have, so the bot will not keep clicking more than you need.
  • drag_count: You can set for how many times you want the bot to drag the list searching for ships that has ammo.

Improvements

  • More options in sending ships to fight
  • Sort ships automatically set from user

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 ⚠️
Owner
Guilherme Matheus
Mechanical Engineer, Business Intelligence developer, passionate about technology, I have knowledge and experience to create a BI architecture and much more 📚
Guilherme Matheus
Discord group chat leaver.

Discord group chat leaver I know many people who have fallen victim to these weird group chat spammers including me. I made this script to help those

cliphd 3 Feb 27, 2022
This repo contains a small project i've done using PILLOW module in python

This repo contains a small project i've done using PILLOW module in python. I wrote an automated script which generates more than 5k+ unique nfts with 0 hassle in less time.

SasiVatsal 11 Nov 05, 2022
Telephus is a connection pooled, low-level client API for Cassandra in Twisted python.

Telephus Son of Heracles who loved Cassandra. He went a little crazy, at one point. One might almost say he was twisted. Description Telephus is a con

Brandon Williams 93 Apr 29, 2021
A Python library for the Buildkite API

PyBuildkite A Python library and client for the Buildkite API. Usage To get the package, execute: pip install pybuildkite Then set up an instance of

Peter Yasi 29 Nov 30, 2022
A python package to easy the integration with Direct Online Pay (Mpesa, TigoPesa, AirtelMoney, Card Payments)

python-dpo A python package to easy the integration with Direct Online Pay (DPO) which easily allow you easily integrate with payment options once wit

NEUROTECH 15 Oct 08, 2022
L3DAS22 challenge supporting API

L3DAS22 challenge supporting API This repository supports the L3DAS22 IEEE ICASSP Grand Challenge and it is aimed at downloading the dataset, pre-proc

L3DAS 38 Dec 25, 2022
The program for obtaining a horoscope in Python using API from rapidapi.com site.

Python horoscope The program allows you to get a horoscope for your zodiac sign and immediately translate it into almost any language. Step 1 The firs

Architect 0 Dec 25, 2021
PaddleOCR推理的pytorch实现和模型转换

PaddleOCR2Pytorch 简介 ”真·白嫖“PaddleOCR 注意 PytorchOCR由PaddleOCR-2.0rc1+动态图版本移植。 特性 高质量推理模型,准确的识别效果 超轻量ptocr_mobile移动端系列 通用ptocr_server系列 支持中英文数字组合识别、竖排文本

519 Jan 08, 2023
Powerful spammer bots for telegram made with python and telethon.

Powerful spammer bots for telegram made with python and telethon. We can deploy upto 70 bots at a time.

32 Dec 15, 2022
AUDD IS MUSIC RECOGNITION API

AUDD IS MUSIC RECOGNITION API

Abdimk 1 Dec 15, 2021
This repository contains ready to deploy automations on AWS

aws-automation-plugins This repository contains ready to deploy automations on AWS. How-To All projects in this repository contain a deploy.sh file wh

Akesh Patil 8 Sep 20, 2022
Simple debugger and tester for dico-command.

dp Simple debugger and tester for dico-command. Installation pip install -U dico-dp Usage bot = dico_command.Bot(...) ... bot.load_module("dp") Comma

3 Nov 19, 2022
Telegram bot that search for the classrooms status of the chosen day and then return all the free classrooms using your preferred time slot

Aule Libere Polimi Since the PoliMi site no longer allows people to search for free classrooms this bot was necessary! It simply search for the classr

Daniele Ferrazzo 16 Nov 09, 2022
Instagram GiftShop Scam Killer

Instagram GiftShop Scam Killer A basic tool for Windows which kills acess to any giftshop scam from Instagram. Protect your Instagram account from the

1 Mar 31, 2022
Asynchronous RDP/VNC client for Python (GUI)

🚩 This is the public repository of aardwolf, for latest version and updates please consider supporting us through https://porchetta.industries/ AARDW

29 Dec 15, 2022
A simple Python wrapper for the archive.is capturing service

archiveis A simple Python wrapper for the archive.is capturing service. Installation pipenv install archiveis Python Usage Import it. import archi

Ben Welsh 157 Dec 28, 2022
🔮 Uncover some followers of a private instagram account

Private Instagram Chaining 🔮 Uncover part of followers of an instagram private account I have this private instagram account julianakhao. I need to g

аэт 69 Dec 17, 2022
A bot to playing music in telegram vcg

Idzeroid Music|| Idzeroid Music adalah sebuah repository music bot telegram untuk memainkan suara di voice chat group anda. Fyi This repo im using for

idzeroid 1 Oct 26, 2021
BingBot - A bot that will automate searches on bing

bingBot A bot that will automate searches on bing. To install this just download

Lukas 2 Jul 28, 2022