Git Product home page Git Product logo

bombcrypto-bot's Introduction

Bomb Crypto Banner

💣 Bomb Crypto Bot 💣

⚠️ Warning

I am not responsible for any penalties incurred by those who use the bot, use it at your own risk.

📄 Documentation

- Language
Portuguese Portuguese

📌 Glossary

📋 About

This bot contains code from other developers, this bot was just refactored, to facilitate new implementations and maintenance.

Developers (Base code):

This bot is free and open source.

Features:

  • Refactored code
  • Add 3 captchas
  • Themes
  • Multi account with many windows side-by-side or many windows maximized
  • Run the Bot, without interrupting errors in the code
  • Console colorful
  • Bot speed, gain a few seconds on the move
  • Update the configuration file required
  • Auto-update files (requires Git installed)
  • Bcoins report after finalizing the map
  • New map estimation added
  • Telegram new commands (workall, restall)
  • Multi account with Multi auth
  • Send heroes to House for rarity

🎁 Donation

BCOIN: 0x4847C29561B6682154E25c334E12d156e19F613a
SEN: 0x4847C29561B6682154E25c334E12d156e19F613a
PIX: 08912d17-47a6-411e-b7ec-ef793203f836

🖌️ Clean Page - Remove all ads

html, body {
  background-color: #000000;
  width: 100%;
  height: 100%;
}

div {
  height: 100%;
  width: 100%;
}

#root > div > img,
#root > div > div > div:nth-child(1),
#root > div > div > div:nth-child(3),
#root > div > div > div:nth-child(2) > div:nth-child(1),
#root > div > div > div:nth-child(2) > div:nth-child(3) {
  display: none;
}

#root > div > div > div:nth-child(2) > div:nth-child(2) > div {
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

#root > div > div > div:nth-child(2) > div:nth-child(2) > div > iframe {
  width: 965px;
  height: 645px;
}
// ==UserScript==
// @name         Bombcrypto Styles
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       Newerton
// @match        https://app.bombcrypto.io/
// @icon         https://www.google.com/s2/favicons?domain=bombcrypto.io
// @grant        none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

const $ = window.jQuery;
$('html, body').css({'background-color': '#150F1B', 'height': '100%'});
const iframe = $('iframe[title^="Bomb"]').attr('scrolling', 'no').clone();
$('div[id="root"] > div').remove();
$('div[id="root"]')
    .css({'width': '100%', 'height': '100%', 'display': 'flex', 'justify-content': 'center', 'align-items': 'center'});
$('div[id="root"]').append(iframe);

🤖 Robot - Preview

Screenshot - Preview

🪟 Installation

Python

🖥️ Computer/Laptop High or Medium Profile
🐍 Install the Python 3.9.9

🖥️ Computer/Laptop Low Profile or Low Profile with Windows 7 Pro
🐍 Install the Python 3.8.10

🔗 https://www.python.org/downloads/

⚠️ It is important to check the option to add python to PATH

Git (To use auto-update)

Windows: https://gitforwindows.org/
Linux (Ubuntu): sudo apt -y update && sudo apt -y install git

⚠️ Open a new terminal and type the command to verify that it was installed correctly

git version

Commands

Install the dependencies by running the command below into the project folder:

pip install -r requirements.txt

Ready! Now just start the bot with the command, inside the project folder

python index.py
commands OS description
./cmd/update_files.sh Linux Updates all project files except config.yaml and telegram.yaml and Python requirements.txt
./cmd/update.sh Linux Updates only the Python requirements.txt
.\cmd\update_files.bat Windows Updates all project files except config.yaml and telegram.yaml and Python requirements.txt
.\cmd\update.bat Windows Updates only the Python requirements.txt

How to works?

The bot doesn't change any of the game's source code, it just takes a screenshot of the game's screen to find the buttons and simulates mouse movements.

⚠️ Some settings can be changed in the /config/config.yaml file, don't forget to restart the bot if you change the settings, some changes in the /config/config.yaml file may cause the bot to stop, such as activating the telegram when the bot is running.

🧪 Tests

Desktop Medium Profile
Intel i5-3570k @ 3.4Ghz, 24GB RAM
Windows 11, Resolution@1920x1080
Python 3.9.9

Laptop Low Profile
Laptop Samsumg RV411, Pentium P6200 @ 2.13Ghz, 2GB RAM
Windows 7, Resolution@1366x768
Python 3.8.10

🎨 Themes

theme toolbar image preview
default Lunar New Year
lunar_newyear Lunar New Year

⚒️ Configs

code type description
app - -
theme string Current game theme, to recognize bug titles and hero list. Values in the Themes table
game string amazon_survival
verify_version boolean - true/false Check app version every 1h, recommended to keep up to date
emoji boolean - true/false Enable/Disable show emoji in console messages
terminal_colorful boolean - true/false Enable/Disable show colored messages on terminal
run_time_app int Bot loop execution time
monitor_to_use int Monitor that the bot uses as a reference
captcha boolean - true/false Enable/Disable in-game captcha recognition
speed string - normal/fast Two bot speed modes, fast mode is between 1~3 minutes faster
authenticate boolean - true/false Enable/Disable Login with Username and Password
multi_account - -
enable boolean - true/false Enable/Disable Multi Account functionality
window_title string Window title, for identification of the active game by the bot
window_fullscreen boolean - true/false Enable/Disable Fullscreen mode, recommended for small monitors
time_intervals - -
send_heroes_for_work array - [int, int] Start and end time for bot to search for heroes to work
refresh_heroes_positions array - [int, int] Start and end interval for bot to update map
chests - -
values - -
chest_01 decimal Brown chest reward value
chest_02 decimal Purple chest reward value
chest_03 decimal Golden chest reward value
chest_04 decimal Blue chest reward value
threshold - -
default decimal Confidence default value
error_message decimal Confidence Value of Error Window Title
back_button decimal Confidence value of map back button
work_button decimal Confidence value of work button
home_enable_button decimal Confidence value of home enable button
heroes_green_bar decimal Hero's partial green energy bar confidence value
heroes_red_bar decimal Hero's partial red energy bar confidence value
heroes_full_bar decimal Hero's full energy bar confidence value
heroes_send_all decimal Trust value of the send all heroes to work
heroes_rest_all decimal Trust value of the send all heroes to rest
chest decimal Confidence value of the chests to calculate the total tokens of the map
jail decimal Confidence value of the chests to calculate the total jail of the map
auth_input decimal Confidence value of the input of login
heroes.common decimal Confidence value of the rarity tag - common
heroes.rare decimal Confidence value of the rarity tag - rare
heroes.super_rare decimal Confidence value of the rarity tag - super_rare
heroes.epic decimal Confidence value of the rarity tag - epic
heroes.legend decimal Confidence value of the rarity tag - legend
heroes.super_legend decimal Confidence value of the rarity tag - super_legend
heroes - -
mode string - all, green, full How to send heroes to work.
all - Sends all heroes without criteria.
green - Sends heroes with partially green energy
full - Sends heroes with full energy
list - -
scroll_attempts int Total scroll the bot will make in the hero list
offsets - -
work_button_green array - [int, int] Offset for mouse click on WORK button
work_button_full array - [int, int] Offset for mouse click on WORK button
metamask - -
enable boolean - true/false Enable/Disable Metamask Auto Login
password string Password to unlock Metamask to login to the game
services - -
telegram boolean - true/false Enable/Disable the message sending service for Telegram
log
save_to_file boolean - true/false Enable/Disable save console log to logger.log file
console boolean - true/false Enable/Disable debugging of some bot information
show_print boolean - true/false Enable/Disable show a screenshot of the bot analysis

👥 Auth with user and pass

⚠️ Don't forget to rename /config/EXAMPLE-accounts.yaml file, to /config/accounts.yaml.

One account without House

1: {username: "your username", password: "your password", house: false, rarity: []}

One account with House

1: {username: "your username", password: "your password", house: true, rarity: ["super_rare", "legend"]}

Multi account without House

1: {username: "your username", password: "your password", house: false, rarity: []}
2: {username: "your username", password: "your password", house: false, rarity: []}
3: {username: "your username", password: "your password", house: false, rarity: []}

Multi account with/without House

1: {username: "your username", password: "your password", house: true, rarity: ["rare", "super_rare"]}
2: {username: "your username", password: "your password", house: false, rarity: []}
3: {username: "your username", password: "your password", house: true, rarity: ["super_legend", "legend", "epic"]}

⚠️ Adjusting the bot

Why some adjustments might be necessary?

The bot uses image recognition to make decisions and move the mouse and click in the right places.
It accomplishes this by comparing an example image with a screenshot of the computer/laptop screen.
This method is subject to inconsistencies due to differences in your screen resolution and how the game is rendered on your computer.
It's likely that the bot doesn't work 100% on the first run, and you need to make some adjustments to the config file.

What are the problems?

  • False negative - The bot was supposed to recognize an image, for example the push to work button, but it didn't recognize the image in the screenshot.

  • False Positive - The bot thinks it has recognized the image it is looking for in a place where this image does not appear.

To solve these problems there are two possibilities, adjusting the "threshold" parameter in the config.yaml file or replacing the example image in the "targets" folder with one taken on your own computer:

Threshold in config file

The "threshold" parameter regulates how confident the bot needs to be to consider that it has found the image it is looking for.
This value is from 0 to 1 (0% to 100%).
Ex:

A threshold of 0.1 is too low, it will assume that it has found the image it is looking for in places it is not showing (false positive). The most common behavior for this problem is the bot clicking random places around the screen.

A threshold of 0.99 or 1 is too high, it won't find the image it's looking for, even when it's showing up on the screen. The most common behavior is that it simply doesn't move the cursor anywhere, or crashes in the middle of a process such as login.

Image Replacement

The example images are stored in the "images/themes/default" folder. These images were taken on my computer with a resolution of 1920x1080. To replace some image that is not being recognized properly, simply find the corresponding image in the folder "images/themes/default", take a screenshot of the same area and replace the previous image. It is important that the replacement has the same name, including the .png extension.

Some behaviors that may indicate a false positive or negative

False positive:

  • Repeatedly sending a hero who is already working to work on a infinite loop.

    • False positive on "work_button.png" image, bot thinks it sees the dark button on a hero with the light button.
  • Clicking random places (usually white) on the screen

    • False positive on image "metamask_sign_button.png"

False negative:

  • Not doing anything

    • Maybe the bot is having problems with its resolution and is not recognizing any of the images, try changing the browser setting to 100%.
  • Not sending the heroes to work

    • It may be a false negative on the image "bar_green_stamina.png" if the option "heroes.mode" is set to "green".

👍 Did you like it? :)

BCOIN: 0x4847C29561B6682154E25c334E12d156e19F613a

SEN: 0x4847C29561B6682154E25c334E12d156e19F613a

PIX: 08912d17-47a6-411e-b7ec-ef793203f836

bombcrypto-bot's People

Contributors

dependabot[bot] avatar newerton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bombcrypto-bot's Issues

Recarregar pagina depois de X tempo?

Bom dia amigo, esta acontecendo de muitos maps terem um block com vida infinida onde o mesmo nao quebra, e é nescessario Recarregar a pagina do BombCrypto.io, é possivel colocar o Bot para a cada X tempo definido ele recarregar a pagina e entra novamente no game? aconteceu comigo isto duas vezes já, onde só fica um block infinito é muito triste kkks

Refreshs múltiplos

Primeiramente parabéns pela rápida atualização.

Aqui estou com um pequeno problema...

Algumas vezes, por lentidão na VM, o jogo demora um pouco pra carregar, com isso o bot entende que houve falha no Login e dá refresh...

As vezes isso acontece mais de 10x seguidas até carregar.

Pergunto, de que forma posso aumentar o tempo que o bot leva pra verificar se o login teve sucesso? Obrigado

feature: (Ideia) Auto refresh page

Uma ideia que eu tive e serve de sugestão, devido a esse bug de bloco e bau inquebravel, seria a adição de uma função pra dar um refresh na página.
Dai ter, la no arquivo se config, a opcao de ativar ou desativar essa funcao e escolher o intervalo para o refresh, assim como ha o de setar o intervalo pra envio dos herois.
Fui claro? kkkk

Agradeço a atencão.

I can't send commands in Telegram since version 1.5.21

Before this update, you could use commands like /map /print /bcoin...

Now I type the command in my Telegram group and the bot does not react.

However it does send automatic information about the heroes, the new map.

What has changed in the new update so that I can send commands again in Telegram?

How to configure Telegram?

I have the bot on botfather, but in the config appears something like;

chat_ids: ["YOUR_CHAT_ID_1", "YOUR_CHAT_ID_2"]

Where i get this two IDs? i know how to get my telegram id, but what is the other ID that i need?

linux

na hora que tento executar o programa no linux, nao vai, como se nao reconhecesse, sera que conseguiria me auxiliar?

Sugestão para /map

seria ótimo se quando desse o /map viesse contando a quantidade de baús que tem e a quantidade de bcoins relacionada (igual o que acontece quando tem um new map...

Integração Telegram

boa noite amigo, vi que voce é BR, estou tendo dificuldade pra colocar o bot do telgram, poderia me ajudar? já peguei o token do botfather e dei /star la no chat

Resolution Problem

Firstable, thank you for this bot, it's very helpful.
I try to install it on my laptop (1600900 max for resolution) and I have some problems.
How can we fit this bot for this resolution ?
When I switch to 1280
720 he works better but after 20 minutes one window shift to the right and there is a blank space.
So one account doesnt work.

Can you help me?
Thanks you

Dica de comando

Como tem bastante gente com bug de Bloco que não quebra, ou baú infinito, é acaba ficando no mapa com 1 baú ou 1 bloco. Poderia adicionar /f5 pra que o bot desse auto ctrl+f5 pra relogar e desbugar

Ubuntu

To tentando usar no Ubunto e o bot nao executa nenhuma ação, preciso alterar alguma coisa?

Forma do Multi account e feature de reload de pagina.

Boa tarde Newerton tudo bom?
será que existe a possibilidade de colocar uma feature de reload da pagina por tempo determinado?
como o bug dos baú e das pedras que não estão quebrando não foi resolvido ainda estou a mercê de plugin no navegador e todos sabemos que plugin junto com metamask pode dar problema.

outra coisa e se você ja viu esse bot funcionando?
ele funciona com as contas lado a lado sem ficar dando ALT TAB,
não sei se seria algo bom para colocar no seu bot.

https://github.com/MatheusHAS/bombcrypto-bot

[SUGGESTION] About DirectInput

If possible use about can use Directinput to click the image ? or about when use "Multi Account" check image and click image without maximum windows one by one ?

bug: Mensagens de comandos Telegram

Boa tarde amigo, eu notei que o comando /restall não retorna nenhum aviso de que a ação foi concluida, só estou relatando isso, pois o /workall devolve uma mensagem falando que todos foram trabalhar ✌️

Erro telegram

Bom dia, estou com erro em receber os arquivos no Telegram, poderiam me auxiliar??
botlog
bot arq

Error Telegram...

Hello everybody.
The Telegram service does not start. I have my id via @userinfobot and my token via @Botfather.
However when I run the bot I get an error..

I added an S to "user ID", I still get the error.

Can you help me please.
Thank you very much.
Capture
Capture2

//

Olá pessoal.
O serviço Telegram não inicia. Eu tenho meu id via @userinfobot e meu token via @Botfather.
No entanto, quando executo o bot, recebo um erro.

Eu adicionei um S ao "ID do usuário", ainda recebo o erro.

Você pode me ajudar por favor.
Muito obrigado.

run_time_app

Newerton, você poderia me explicar melhor sobre run_time_app: 1, e qual a melhor configuração pra ele, pois tô achando que é por conta dele que o bot não coloca os heróis para trabalhar, só fica voltando para atualizar.

HOUSES

boa tarde!

existe algum jeito de mandar os herois para casa?

a problem in game recent

In the end, there will be only one normal obstacle on the map, but it will not disappear no matter how you blow it up, even if you re-enter the map. After refreshing the browser and re-entering the game, it will switch to a new map. Obviously this is a bug in the game, but hopefully this situation can be taken into account. Because it might waste a lot of time if you don't find out.

Mult-telas e emoji

Boa tarde, gostaria de saber se teria como me ajudar na questão de mult telas, uso 3 telas aqui equando estou com elas ativadas nao consigo fazer o bot rodar, mesmo colocando o numero da tela etc, só quando desabilito

Can I request version with Home feature ?

Hello, This tool is very usefull for me to automation with bombcrypto ,
So , Can you make a version work with home feature. and sent Bcoin amount report frequently not wait for the new map pop up ?

Zoom no navegador

Boa tarde,

Tenho 4 contas, meu monitor é pequeno, então uso zoom de 50%, o bot atende?

fix: bot command bug

When a robot sends a .bcoin command, the obtained image is not real-time but cached after the last newmap. This is not consistent with the performance of versions before 1.5.2, including the .map command.

[FEATURE][SUGGESTION] auto claim

  • o código em todo mapa novo faz a verificação dos bcoins certo? Caso a quantidade seja maior ou igual a uma quantidade pré configurada no config.yaml e essa feature esteja habilitada o bot verifica a quantidade de bcoin na metamask pela barra superior e sendo >1 ele clica em claim.
  • caso o auto claim esteja habilitado o bot manda uma mensagem pro telegram informando a quantidade que foi reivindicado

feature: Multi-account no Linux e MacOS

E aí meu mano! Tudo certo?

Tô com dois problemas aqui para rodar em MacOS.

  1. O multi-account, por mais que eu coloque como "True", no terminal ele diz que está DISABLED. Ele não funciona em posix? É só nt mesmo?

  2. Mesmo rodando em uma conta, aparentemente ele starta corretamente (recebo a notificação do Telegram), mas ele não loga e já vai direto nessa parte aqui:

📱 Initializing Telegram...
🧾 Multi account DISABLE
🏢 Search for heroes to work
⚒️ Sending heroes with green stamina bar to work!
🦸 0 total heroes sent since the bot started

Já tentei iniciar com o mapa aberto, com a tela de heróis aberta, e mesmo assim não rola.

Sabe o que pode ser?

Abraço e valeu por compartilhar o projeto!

Multi account with many windows side-by-side

Na descrição do repositório, uma das features é que é possível usar várias contas lado a lado (Multi account with many windows side-by-side) mas, ao tentar fazer isso, as janelas são maximizadas quando o bot começa a funcionar.

Eu criei novas imagens de acordo com o novo tamanho e zoom pra minha resolução e não resolveu. Eu tenho a impressão que o jogo não funciona tão bem alternando as janelas já que os heros parecem só trabalhar quando estão visíveis.

CERTIFICATE_VERIFY_FAILED

Hello, my bot crashs everytime with this message bellow, can anyone help me about this problem? Thanks!

raceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 366, in connect
self.sock = ssl_wrap_socket(
File "/usr/lib/python3/dist-packages/urllib3/util/ssl
.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/acc1/.local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /newerton/bombcrypto-bot/main/config/version.yaml (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "index.py", line 50, in
main()
File "index.py", line 34, in main
application.start()
File "/home/acc1/Downloads/bombcrypto-bot-main/src/application.py", line 25, in start
self.compareYamlConfig()
File "/home/acc1/Downloads/bombcrypto-bot-main/src/application.py", line 132, in compareYamlConfig
gitHubVersion = self.gitHubVersion()
File "/home/acc1/Downloads/bombcrypto-bot-main/src/application.py", line 85, in gitHubVersion
data = requests.get(
File "/home/acc1/.local/lib/python3.8/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/home/acc1/.local/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home/acc1/.local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/home/acc1/.local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/home/acc1/.local/lib/python3.8/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /newerton/bombcrypto-bot/main/config/version.yaml (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

File update error config.yaml

when i run the bot i get the following error:

File that needs updating: ./config/config.yaml


***** UPDATE REQUIRED *****


Key added:
['threshold']['jail']
Erro in validation configs

Unable to automatically reconnect

Sometimes when the game suffers some unexpected disconnection or error the bot will try to reconnect.

So far so good, however as soon as it detects the "Connect wallet" button and clicks it, a Metamask pop-up appears.

This pop-up is to sign or reject the contract to finally enter Bombcrypto.

imagen

The problem here is that it never clicks the "sign" button when trying to reconnect, so I have to watch out and reconnect manually.

Is there a way to disable signing, or make reconnect work properly on the bot?

[Sugestões] Novos comandos do telegram

Algumas sugestões para comandos do telegram

1 - Comando para mandar trabalhar apenas herois de determinada raridade. Ex: /workallepic ; /workallcommon

2 - Comando para mandar trabalhar os herois com stamina cheia.

3 - Comando para mandar trabalhar os herois com stamina verde.

4 - Comando para printar a pagina de herois.

Erro ao encontrar erro

2022-01-18 02:03:00 - 💥 Error detected, trying to resolve
Traceback (most recent call last):
File "/home/bomb/Downloads/newbot/index.py", line 50, in
main()
File "/home/bomb/Downloads/newbot/index.py", line 36, in main
multi_account.start()
File "/home/bomb/Downloads/newbot/src/multi_account.py", line 56, in start
self.botSingle()
File "/home/bomb/Downloads/newbot/src/multi_account.py", line 75, in botSingle
self.steps(last)
File "/home/bomb/Downloads/newbot/src/multi_account.py", line 125, in steps
self.errors.verify()
File "/home/bomb/Downloads/newbot/src/error.py", line 32, in verify
self.telegram.commandSendPrint()
TypeError: commandSendPrint() missing 1 required positional argument: 'update'

image

ImportError: cannot import name 'Update' from 'telegram'

Traceback (most recent call last):
File "index.py", line 7, in
from src.services.telegram import Telegram
File "/home/bomb/Desktop/newbot/src/services/telegram.py", line 2, in
from telegram import Update
ImportError: cannot import name 'Update' from 'telegram' (/home/bomb/.local/lib/python3.8/site-packages/telegram/init.py)

close_button

After maintenance, close_button is not clicked

feature: Ideas (and 1 issue) - New telegram commands to multiacc

IDEAS :

  1. Add a possibility to choose which notification we want to get on TELEGRAM
.
    ex: I commented the notification "X total heroes sent since […]"
    
It’s too many notification and useless for me (and for others people maybe ?)
  2. Add Command on TELEGRAM to get the amount of BCOIN in chest for all accounts/for one account specifically.
  3. Add a refresh on each page every X minutes/hours to release some RAM or different bug on the game.
  4. Add the new chest image (with the key inside for adventure mode).
  5. Add a CronJob to send to TELEGRAM at each end of day the amount of chest per each account.
  6. [HUGE WORK] Add the feature to send correctly every new map done. Save in a temporary folder a screenshot of the map. Then each X minutes compare the actual map to the saved one, if it changed, replace it and send a notification to TELEGRAM bot with the map + bcoin chest

ISSUE :

  • Command not work on TELEGRAM ?

[Future] New Telegram commands

Alguns comandos para adicionar no bot do Telegram.
Some commands to add in Telegram bot.

  • Trabalhar os heróis com stamina cheia. (/workall_greenbar)
  • Trabalhar os heróis com stamina verde. (/workall_fullbar)
  • Printscreen da lista de heróis. (/print_heroeslist)
  • Trabalhar apenas heróis de determinada raridade. (/workall_epic , /workall_common)
  • Modo multiaccount (/map_1, /bcoin_1, /workall_1, /restall_1, ...)

Observações.

Comando para printar a página de herois
As imagens vai depender da quantidade de scroll_attempts configurado. O bot não vai fazer merge da lista para enviar 1 imagem, após cada scroll o bot vai enviar um print da lista.

**Modo multiaccount **
Esse comando pode levar mais tempo, pela complexidade. O Bot tem que pegar a quantidade de tela ativa do multi_account.py e criar todos os comandos novamente adicionando o underline depois do comando com o número da janela ativa.

Can multi windows stop clicking after sending hero to work??

Hi!
I have used multi windows for The First time and I have a Question about this bot.

The bot always click and change between chrome windows. all the time. so

Can it pause click and change chrome windows until the time to re-hero position or other action???

Thanks!!
Capture
else??

This bot is awesome!!!!

[Sugestões] algumas sugestões para uma próxima att

Algumas sugestões para uma próxima atualização:

1 - Alterar o formato da data no data.py pra dd/mm/aaaa, em vez de aaaa-mm-dd.
Não sei se o formato internacional é intencional, mas aqui no meu eu alterei, acho mais fácil a visualização no formato BR.
Ou, de repente daria pra configurar o formato de acordo com o idioma de preferência através do config.yaml (se PTBR dd/mm/aaaa, nas demais aaaa-mm-aa)....

2 - Gravar o saldo no CSV com as duas casas decimais, da mesma forma que é enviado via telegram após o new map

3 - Quando solicita o saldo via telegram ele devolve apenas em formato printscreen, seria interessante enviar também em formato texto, da mesma forma que acontece quando inicia um novo mapa. Eu não sei se você tem um motivo pra isso, mas se sim, poderia me auxiliar a efetuar esta alteração?
Eu gostaria de receber o saldo somente em formato texto, sem a imagem. É simples de se fazer?

4 - Esta próxima sugestão é bastante complexa, eu sei, nem sei se é viável. Mas seriauma forma de identificar/diferenciar as contas pra quem usa multiaccount... (pra conseguir usar as funções do telegram)
A única maneira que me vem a cabeça seria pegando o nome de perfil/usuário no firefox. Aqui uso about:profiles pra verificar no navegador os perfis.
Aqui, por exemplo, eu uso cada conta em um perfil, um se chama 'conta principal' e o outro 'conta secundária'.
Se fosse possível identificar o número de janelas, e delas obter o nome do perfil (ou nome do usuário), acho que seria interessante... Talvez dê pra fazer o mesmo em outros navegadores. Mas enfim, é só uma idéia, não sei se é viável e sei que seria complicado...

SE funcionar esta maneira de identificar/diferenciar as contas, acho que seria interessante também adicionar uma coluna no CSV com o nome do perfil.

Enfim, são apenas sugestões, por favor, não veja como cobranças.. Ate porque o bot já está excelente como está!
Obrigado amigo

Multi user and pass

How can I make the bot enter different username and password for each account?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.