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
Apprise - Push Notifications that work with just about every platform!

apΒ·prise / verb To inform or tell (someone). To make one aware of something. Apprise allows you to send a notification to almost all of the most popul

Chris Caron 7.2k Jan 07, 2023
Savecontentbot - Telegram Save Content Bot With Same more Features

Save Restricted Content Bot A simple telegram bot to save restricted content wit

Group Dc Bots 3 Jan 26, 2022
Graviti TensorBay Python SDK

TensorBay Python SDK is a python library to access TensorBay and manage your datasets. It provides: A pythonic way to access your

Graviti 72 Aug 22, 2022
A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier

A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier

Amazon Web Services - Labs 1.9k Jan 07, 2023
A crashbot for Discord

Description A Effective crash bot code How to use Setup First, we need to install the library: pip install discord or (for linux users): pip3 install

3 Sep 17, 2021
Fetch fund data from avanza.se using Python and some web scraping with bs4

Py(A)vanza Fetch fund data from avanza.se using Python and some web scraping with bs4. The default way is to display the data in the terminal, apply -

dunderrrrrr 1 Jan 27, 2022
NMux is the version of the NMscript in termux

NMscript-termux-version Termux-Version NMux is the termux version of NMscript which is NMscript? NMscript is a simple script written in Python that he

cabeson sin z 5 Apr 23, 2022
Telegram group manager moderen and simple.

Upin Robot A Advanced Powerful, Smart And Intelligent Group Management Bot With New And Powerful Features ... Written with Pyrogram and Telethon... If

Muhammad Nawawi 3 Dec 23, 2021
This is a discord bot, which tells you food recipes.

Discord Chef Bot You have a friend, familiy or other group / channel where the topic is the food? You cannot really decide what's for Saturday lunch?

2 Apr 25, 2022
GBSLocalLauncher - A script to compose ENV file for Local Compose

GBSLocalLauncher This is a script to compose ENV file for Local Compose. It crea

2 Jan 27, 2022
Generate visualizations of GitHub user and repository statistics using GitHubActions

GitHub Stats Visualization Generate visualizations of GitHub user and repository

Jun Shi 3 Dec 15, 2022
A discord bot that will help you browse/download nhentai sources.

Risa Introduction Risa is an nHentai discord bot that will help you browse and download your favorite doujin inside your own discord server. Hosting M

markee7 14 Oct 25, 2021
Satoshi is a discord bot template in python using discord.py that allow you to track some live crypto prices with your own discord bot.

Satoshi ~ DiscordCryptoBot Satoshi is a simple python discord bot using discord.py that allow you to track your favorites cryptos prices with your own

ThΓ©o 2 Sep 15, 2022
API RestFull de uma clinica, onde vai efetuar os agendamentos dos pacientes e mostrar o historicos de cada agendamentos

API REstFull O que tem na API Usado para clinicas. Cadastro de pacientes. Agendamentos de pacientes. HistΓ³ricos dos agendamentos vinculados com a tabe

Lucas Silva 3 Aug 29, 2022
A Discord bot made by QwertyIsCoding

QwertyBot QwertyBot A Discord bot made by QwertyIsCoding Explore the docs Β» View Demo . Report Bug . Request Feature About The Project This Discord bo

4 Oct 08, 2022
Editing a Tinder bot created by @frederikme

tinder_bot_edit Editing a Tinder bot created by @frederikme Table of Contents Basic Swipe Bot Basic Swipe Bot Download the code as a zip or clone the

Alex Carter 1 Nov 23, 2021
I was sick of having to hand my friends my phone, so I gave my Spotify some SMS features!

SMSpotifY Just a little tool so that my friends can text a phone number and add to my spotify queue for parties and such:) Features Roles / Access Con

Sara 2 Jan 17, 2022
Fetch tracking numbers of Amazon orders, for the ease of the logistics.

Amazon-Tracking-Number Fetch tracking numbers of Amazon orders, for the ease of the logistics. Read Me First (How to use this code): Get Amazon "Items

Tony Yao 1 Nov 02, 2021
A Python wrapper around the Twitter API.

Python Twitter A Python wrapper around the Twitter API. By the Python-Twitter Developers Introduction This library provides a pure Python interface fo

Mike Taylor 3.4k Jan 01, 2023
tgEasy's Official Assistant Bot and Example Bot

tgEasy Assistant The assistant bot that helps people with tgEasy directly on Telegram. This repository contains the source code of @tgEasyRobot and th

Divide Projectsβ„’ 4 Dec 26, 2022