This repository was archived by the owner on Nov 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Home
DorskFR edited this page Aug 13, 2021
·
7 revisions
Welcome to the LeaguePyBot wiki!
This documentation is for v2 only.
- This is a fun project for me, I do not care and do not support you if you just want to bot for accounts (also there are more efficient alternatives for this).
- This is a beta. Use at your own risk.
- This script will patch your client and in-game settings (hotkeys, interface): so backup your settings.
git clone https://github.com/DorskFR/LeaguePyBot.git
Set Python PATH (How to set Python PATH)
- Might not even be necessary
export PYTHONPATH="$PWD:$PYTHONPATH"
cd LPBv2/
pip install -r requirements.txt
python main.py
- Use END key of your keyboard
- or check controller/devices/listener.py and change the key in on_press
def get_logger(name="LPBv2", log_to_file=True):- (if you want to see everything the client outputs = spam)
await bot.client.log_everything()- (if you just want to have the client automation, console printing but not the bot controlling the mouse and keyboard)
bot = LeaguePyBot(autoplay=False)cs = bot.client.champ_select
await cs.set_role_preference(first="TOP", second="BOTTOM")- The list of roles available is as follow:
TOP, JUNGLE, MIDDLE, BOTTOM, UTILITY
cs = bot.client.champ_select
await cs.set_picks_per_role(picks=["Garen", "Darius"], role="TOP")cs = bot.client.champ_select
await cs.set_bans_per_role(bans=["Thresh", "TahmKench"], role="BOTTOM")- The list of champion names is in common/champions.py. Capitalization does not matter.
- This is an unfinished feature (beta)
- The items are represented by their code to allow multiple regions
- You should check data dragon for this.
- ex: http://ddragon.leagueoflegends.com/cdn/11.15.1/data/en_US/item.json
- "One day" the build will be fetched automatically based on the champ picked.
await bot.build.set_starter_build(build=["1055", "2003", "3340"])
await bot.build.set_item_build(build=["3074", "3006", "3508", "6692", "3072"])
# Sample melee build
# await bot.build.set_starter_build(build=["1055", "2003", "3340"])
# await bot.build.set_item_build(build=["3074", "3006", "3508", "6692", "3072"])
# Sample mage build
# await bot.build.set_starter_build(build=["1082", "2003", "3340"])
# await bot.build.set_item_build(build=["6653", "3020", "4637", "3089"])
# Sample ADC build
# await bot.build.set_starter_build(build=["3070", "2003", "3340"])
# await bot.build.set_item_build(build=["6632", "3158", "3004", "3110", "6694", "3074"])await cg.create_custom_game()
# fill one team with bots
await cg.fill_with_bots(team="ORDER")
# or one by one
await cg.add_bot(team="CHAOS", bot_difficulty="MEDIUM", champion_id=51)
await cg.start_champ_selection()- List of bots available is in common/bots.py
await cg.create_ranked_game()
await cg.select_lane_position()
await cg.start_matchmaking()await cg.create_normal_game()
await cg.start_matchmaking()await cg.create_coop_game()
await cg.start_matchmaking()- You should activate camera lock once in COOP games.
- For other modes, it needs to be activated every game. Check line 150 of bot.py.
Feel free to open an issue for bugs / requests. Feel free to contribute through here or send me an email.