shamhi / HamsterKombatBot

Bot that mines coins in HamsterKombat
Apache License 2.0
759 stars 217 forks source link

[GUIDE] Termux Setup! #2248

Open DineshValor opened 3 weeks ago

DineshValor commented 3 weeks ago

Termux requirements and guidance for fellow Android users.

Running on Termux (Android) Screenshot_20240823-222022

https://github.com/user-attachments/assets/a6fb559a-fb0c-4207-ae69-00787fcf9c9e

semeer37 commented 3 weeks ago

I am also running on termux, but on nethunter. Playwright won't work on termux(you might have to disable minigame, since it is only one key/day). But playwright works on nethunter(nano version is enough)

DineshValor commented 3 weeks ago

I am also running on termux, but on nethunter. Playwright won't work on termux(you might have to disable minigame, since it is only one key/day). But playwright works on nethunter(nano version is enough)

Can you create a fork supporting Termux?

semeer37 commented 3 weeks ago

I am also running on termux, but on nethunter. Playwright won't work on termux(you might have to disable minigame, since it is only one key/day). But playwright works on nethunter(nano version is enough)

Can you create a fork supporting Termux?

I did it once(I even wrote one liner installation script). They keep on updating the bot every week. I don't have time(sorry, I am too lazy for that) to manage. So i deleted the repo.

The changes in termux are we have to install rust for pydantic, disable minigame(in .env) enable comment for import playwright. That's it.

If anyone want to run the bot as per in orginal README, just install kali nethunter rootless nano version.

Brother, if you can maintain, you do it.

DineshValor commented 3 weeks ago

I am also running on termux, but on nethunter. Playwright won't work on termux(you might have to disable minigame, since it is only one key/day). But playwright works on nethunter(nano version is enough)

Can you create a fork supporting Termux?

I did it once(I even wrote one liner installation script). They keep on updating the bot every week. I don't have time(sorry, I am too lazy for that) to manage. So i deleted the repo.

The changes in termux are we have to install rust for pydantic, disable minigame(in .env) enable comment for import playwright. That's it.

If anyone want to run the bot as per in orginal README, just install kali nethunter rootless nano version.

Brother, if you can maintain, you do it.

Deleting a repo not an good idea, what if someone get an idea or caught any minimal mistake from other's sources.

Anyways thanx for the advice, I will try to do it, if got lot of free time.

DineshValor commented 2 weeks ago

Installation for Termux 💯

Quick Launch

cd HamsterKombatBot
python -m venv venv
source venv/bin/activate
python main.py -a 2

First Time Setup

pkg install git -y
git clone https://github.com/shamhi/HamsterKombatBot.git
cd HamsterKombatBot

pkg update && pkg upgrade -y
pkg install python wget -y
pkg install rust -y

python -m venv venv
source venv/bin/activate

pip install --upgrade pip
pip install aiohttp==3.9.5
pip install aiohttp-proxy==0.1.2
pip install aiosignal==1.3.1
pip install annotated-types==0.7.0
pip install async-timeout==4.0.3
pip install attrs==23.2.0
pip install better-proxy==1.2.0
pip install colorama==0.4.6
pip install fake-useragent==1.5.1
pip install frozenlist==1.4.1
pip install greenlet==3.0.3
pip install idna==3.7
pip install loguru==0.7.2
pip install multidict==6.0.5
pip install pyaes==1.6.1
pip install pydantic==2.8.2
pip install pydantic-settings==2.3.4
pip install pydantic_core==2.20.1
pip install pyee==11.1.0
pip install Pyrogram==2.0.106
pip install PySocks==1.7.1
pip install python-dotenv==1.0.1
pip install TgCrypto==1.2.5
pip install typing_extensions==4.12.2
pip install win32-setctime==1.1.0
pip install yarl==1.9.4

cp .env-example .env

read -p "Enter your API ID: " API_ID
read -p "Enter your API Hash: " API_HASH

sed -i "s/^API_ID=.*/API_ID=${API_ID}/" .env
sed -i "s/^API_HASH=.*/API_HASH=${API_HASH}/" .env

sed -i "s/from playwright.async_api import async_playwright/'null'/g" bot/utils/scripts.py

python main.py -a 1
python main.py -a 2