#include <std_disclaimer.h>
/*
*
* We are not responsible for banned account or any other punishment by this game's GM.
* Please do some research if you have any concerns about features included in this repo
* before using it! YOU are choosing to use these scripts, and if
* you point the finger at us for messing up your account, we will laugh at you.
*
*/
Yet another League of Kingdoms farming bot
Feature | Supported? |
---|---|
claim mail | ✔YES️ |
buy caravan items | ✔YES️ |
use resource items | ✔YES️ |
claim chests(vip/silver/gold) | ✔YES️ |
harvest resources | ✔YES️ |
alliance help | ✔YES️ |
alliance research | ✔YES️ |
alliance shop auto buy | ✔YES️ |
quest reward auto claim | ✔YES️ |
building upgrade | ✔YES️ |
academy research | ✔YES️ |
train troops | ❌NO |
field farming | 🚧WIP |
git clone https://github.com/hldh214/lok_bot.git
# or click "Download Zip" button
cd lok_bot
pipenv sync
# Use the UTF-8 mode on Windows
export PYTHONUTF8=1
# activate a new shell with pipenv
pipenv shell
python -m lokbot YOUR_X_ACCESS_TOKEN
# or run directly inside pipenv
pipenv run python -m lokbot YOUR_X_ACCESS_TOKEN
docker build -t lok_bot_local --build-arg PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple .
docker run -e TOKEN=YOUR_X_ACCESS_TOKEN lok_bot_local
docker run -e TOKEN=YOUR_X_ACCESS_TOKEN ghcr.io/hldh214/lok_bot
There are currently no plans to support login functionality. So we need this X_ACCESS_TOKEN
trick to made it works.
You need to log in on the web, then press F12 to open DevTools. Then
click Network
tab(1)(2), scroll down to the latest request and click it(3). On the right side(4) scroll down to the
bottom, and you can see x-access-token
field(5). Copy that value and pass it as X_ACCESS_TOKEN
mentioned above.
ETH/Matic: 0x27C7993CC3349DDE839B4F921733CFc523385864
https://github.com/miguelgrinberg/python-socketio/blob/v4.6.1/docs/client.rst https://github.com/bambusbjoerni/bambusbjoerni.github.io