Git Product home page Git Product logo

lol-bot's People

Contributors

iholston 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  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  avatar

lol-bot's Issues

Connection Error

Bot works fine for a few hours then i get a failed to establish a new connection error and have to restart the bot.

ConnectionError: HTTPSConnectionPool(host='127.0.0.1', port=63778): Max retries exceeded with url: /lol-gameflow/v1/gameflow-phase (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000002A29922FDD0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

Doing nothing in game

The bot starts the game, picks a champ and everything but after the game starts at 00:00 it does not do anything. How can I fix that?

How to change gametype to ARAM ?

Hello,
Thanks for the bot it works perfectly ! I was just wondering if you could share the GAME_LOBBY_ID for ARAM because in the contants.py file, there are already 2 IDs (BEGINNER_BOTS_GAME_LOBBY_ID = 840 and INTERMEDIATE_BOTS_GAME_LOBBY_ID = 850). Since after level 20, the EXP gained is reduced to 65% when you play more than 3h a day, I was thinking about switching the game mode from COOP vs AI to ARAM afte level 20.

  • First, do you have such an ID ? I didn't find the 840 and 850 so maybe you could know this one.
  • Also, is it safe to use this tool in ARAM (because it is PVP and not vs AI games)

Thanks for your work !

not working

When i open launcher i get this error:
C:\Users\PC\Desktop\lol-bot-main\scripts>python bot.py
Traceback (most recent call last):
File "C:\Users\PC\Desktop\lol-bot-main\scripts\bot.py", line 6, in
import launcher
File "C:\Users\PC\Desktop\lol-bot-main\scripts\launcher.py", line 10, in
import utils
File "C:\Users\PC\Desktop\lol-bot-main\scripts\utils.py", line 1, in
import keyboard
ModuleNotFoundError: No module named 'keyboard'

C:\Users\PC\Desktop\lol-bot-main\scripts>pause

Multiple Clients

Hi the bot is great, was just curious how one would run it with multiple clients at the same time?

Infinite queue

client

The league client often times bugs out and cant start the queue anymore
If you could implement a client restart when this happens that would fix the problem

Unexpected Error: Traceback

This error occurred many times and i disconnected because of AFK.
This is copy from log file.please help me.

[23 Jun 2023 05:31:08] [WARNING] [main ] Unexpected Error: Traceback (most recent call last):
File "C:\Users\Administrator\Downloads\lol-bot-main (5)\lol-bot-main\scripts\bot.py", line 40, in main
client.loop()
File "C:\Users\Administrator\Downloads\lol-bot-main (5)\lol-bot-main\scripts\client.py", line 76, in loop
game.play_game()
File "C:\Users\Administrator\Downloads\lol-bot-main (5)\lol-bot-main\scripts\game.py", line 47, in play_game
utils.click(GAME_CENTER_OF_SCREEN, LEAGUE_GAME_CLIENT_WINNAME)
File "C:\Users\Administrator\Downloads\lol-bot-main (5)\lol-bot-main\scripts\utils.py", line 57, in click
pyautogui.moveTo(updated_x, updated_y)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyautogui_init_.py", line 597, in wrapper
failSafeCheck()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyautogui_init_.py", line 1722, in failSafeCheck
raise FailSafeException(
pyautogui.FailSafeException: PyAutoGUI fail-safe triggered from mouse moving to a corner of the screen. To disable this fail-safe, set pyautogui.FAILSAFE to False. DISABLING FAIL-SAFE IS NOT RECOMMENDED.

How to run in a VM?

Hey! First, thanks for the fantastic bot; it's helping me level up smurf accounts.

I would like to know if running it via virtual machines is possible and how to do it.

Contact

Do you have any contact like discord or other means to talk?

Set Game Mode to Intro Bots

Hey, I was just wondering how I can change the game mode from Beginner bots to Intro bots. There are alot more "people" and less bots in beginner than in intro, so I feel it will be safer. I tried changing it myself, but I have 0 experience coding and it didn't do anything. Any help would be awesome!

Afk warning

The bot buys random items go mid and standing behind turret and opening shop for second time and then i get afk warning because not moving after few mins bot moves.
Did i mess up something?

trouble buying

I have a problem, when it enters the game it stays on the purchase screen and the program closes. you have to buy it manually for it to work.

Questions

Add me on discord, I have a few questions to ask you regarding the program
Discord: ssamika

how do i uninstall

Hi, thank you for providing this bot. It has fulfilled its purpose of levelling up my Smurf account. Now I am ready to uninstall it from my system. Looking for any pointers on how I can do that as I am not very tech-savvy.

Thank you

Does not reconnect to the match

The bot works for a couple of games but whenever it disconnects from the match for whatever reason it does not reconnect back and gets stuck.

This is the error:
vmconnect_oKwXkOyITD

Error when i launch the launcher

Hi i get this error
File "F:\Download\deskopt\lol\lol-bot-main\Another-LoL-Bot\scripts\bot.py", line 58, in
main()
File "F:\Download\deskopt\lol\lol-bot-main\Another-LoL-Bot\scripts\bot.py", line 13, in main
logging.basicConfig(
File "F:\Download\deskopt\Python311\Lib\logging_init_.py", line 2050, in basicConfig
h = FileHandler(filename, mode,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Download\deskopt\Python311\Lib\logging_init_.py", line 1181, in init
StreamHandler.init(self, self.open())
^^^^^^^^^^^^
File "F:\Download\deskopt\Python311\Lib\logging_init
.py", line 1213, in _open
return open_func(self.baseFilename, self.mode,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Andrea\Desktop\log.txt'
i don't know how to fix it so if you can help me i thank you .

launch bot on multiple vms

Hello there,

i m here to report an issue about using the bot on multiple VMs i think it is related to sessions that are created. ( or maybe many bots are asking get request to the same local host server with same port (2999) to get the data is the problem, i'm not sure tho )

image

utf-8 Error

I got this error after trying to use my database
File "C:\Users\Maquina\Desktop\Bot de upar contas em Python\scripts\bot.py", line 28, in main
client.init()
File "C:\Users\Maquina\Desktop\Bot de upar contas em Python\scripts\client.py", line 37, in init
start_app(username, password)
File "C:\Users\Maquina\Desktop\Bot de upar contas em Python\scripts\client.py", line 263, in start_app
log.info(str(output, 'utf-8').rstrip())
^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 0: invalid continuation byte

The accounts.py updated:
`import random
import mysql.connector

Configuração da conexão com o banco de dados

db_config = {
'host': '192.168.1.8',
'user': 'goiano',
'password': 'goiano',
'database': 'contas',
'charset': 'utf8'
}

cnx = mysql.connector.connect(**db_config)

def get_username():
# Conexão com o banco de dados
cnx = mysql.connector.connect(**db_config)
# Cursor para executar as consultas SQL
cursor = cnx.cursor()
# Consulta SQL para obter uma conta aleatória com nível menor que 30
query = ("SELECT login FROM upando WHERE nivel < 30 ORDER BY RAND() LIMIT 1")
cursor.execute(query)
result = cursor.fetchone()
# Fechar a conexão com o banco de dados
cursor.close()
cnx.close()
return result[0] if result else None

def get_password():
# Conexão com o banco de dados
cnx = mysql.connector.connect(**db_config)

# Cursor para executar as consultas SQL
cursor = cnx.cursor()
# Consulta SQL para obter uma conta aleatória com nível menor que 30
query = ("SELECT senha FROM upando WHERE nivel < 30 ORDER BY RAND() LIMIT 1")
cursor.execute(query)
result = cursor.fetchone()
# Fechar a conexão com o banco de dados
cursor.close()
cnx.close()
return result[0] if result else None

def set_account_as_leveled():
# Conexão com o banco de dados
cnx = mysql.connector.connect(**db_config)
# Cursor para executar as consultas SQL
cursor = cnx.cursor()
# Consulta SQL para atualizar a conta para nível máximo
query = ("UPDATE upando SET nivel = 100 WHERE login = %s")
# Obter um nome de usuário aleatório e atualizar o registro correspondente
username = get_username()
cursor.execute(query, (username,))
cnx.commit()
# Fechar a conexão com o banco de dados
cursor.close()
cnx.close()`

starting error

Hello, I get an error when trying to start the bot. I made sure to have all the requirements from the txt file and added my normal python folder along with the scripts & libs folder to the system variables path. Also updated my install path, so I'm not sure what's wrong.
This is the error message:

[2023-07-29 02:32:13,532] [INFO ] [launch_league ] Overwriting/creating game config
[2023-07-29 02:32:13,534] [WARNING] [main ] Unexpected Error: Traceback (most recent call last):
File "C:\Users\x\lol-bot\scripts\bot.py", line 38, in main
launcher.launch_league()
File "C:\Users\x\lol-bot\scripts\launcher.py", line 27, in launch_league
shutil.copy2(LOCAL_GAME_CONFIG_PATH, LEAGUE_GAME_CONFIG_PATH)
File "C:\Program Files\Python311\Lib\shutil.py", line 436, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Program Files\Python311\Lib\shutil.py", line 258, in copyfile
with open(dst, 'wb') as fdst:
^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: 'D:\x0colders\Riot Games\League of Legends/Config/game.cfg'

C:\Users\x\lol-bot\scripts>pause

Running multiple accounts at the same time

Hi, i wanna know if it's possible to run multiple accounts at the same time on a same machine. I saw some similar doubts (with VMs), but I tried and it doesn't work very well. Was looking for maybe a profitable method to use it, even if need to program without mouse dependency in the game, because lvl 0-30 takes like more than 3 days 24/7 and it's not worth at the moment. Thanks for the code, i'm waiting your answer!

more a request than a isssue

Hi, I'm testing a lot of your code as my playground(I'm new to python). Could you add a feature that would set the game window to the top left corner (0, 0 pixel) or tell me how to do it? (I tried but it didn't work)

Not working if lobby have ban phase

Hello,

handle_game_lobby function doesn't have ban phase check, cause of that bot are not locking champs.

It would be nice to add a check if there is a ban phase.

connection error on vm

try to use vm to run the bot but can't connect to game(i know this is not a new issue but i can't a way to solve it so i post it again)
10061
about log file,i can't find the log.txt file on my desktop(vm)

Doesn't move

everything is normal at first. the bot gets in the game, buy the item but cannot move to mid. It just doesn't click mid. any idea how to solve this?

doesn't move when in game

Hello, when i start the bot everything goes fine until i get into game then nothing happens and i stay afk

File not found

I have some issues with the launching file : I have installed python 3.10 and used the installer file but after using the launcher, it gets me to this error.

C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts>python bot.py
Traceback (most recent call last):
File "C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts\bot.py", line 58, in
main()
File "C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts\bot.py", line 13, in main
logging.basicConfig(
File "C:\Users\daxer\AppData\Local\Programs\Python\Python310\lib\logging_init_.py", line 2031, in basicConfig
h = FileHandler(filename, mode,
File "C:\Users\daxer\AppData\Local\Programs\Python\Python310\lib\logging_init_.py", line 1167, in init
StreamHandler.init(self, self.open())
File "C:\Users\daxer\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 1197, in _open
return open_func(self.baseFilename, self.mode,
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\daxer\Desktop\log.txt'

C:\Users\daxer\OneDrive\Bureau\lol-bot-main\scripts>pause

(Sorry if its an obvious error, i dont know anything about python)

Traceback

[2023-08-17 02:54:31,842] [INFO ] [launch_league ] Overwriting/creating game config
[2023-08-17 02:54:31,842] [INFO ] [launch_league ] Opening League of Legends
[2023-08-17 02:54:31,952] [WARNING] [main ] Unexpected Error: Traceback (most recent call last):
File "C:\Users\User\Desktop\lol-bot-main\scripts\bot.py", line 38, in main
launcher.launch_league()
File "C:\Users\User\Desktop\lol-bot-main\scripts\launcher.py", line 35, in launch_league
start_app(username, password)
File "C:\Users\User\Desktop\lol-bot-main\scripts\launcher.py", line 38, in start_app
if utils.is_league_running():
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\lol-bot-main\scripts\utils.py", line 17, in is_league_running
res = subprocess.check_output(["TASKLIST"], creationflags=0x08000000)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['TASKLIST']' returned non-zero exit status 1.

Bot doesn't know how to buy items

It just opens the shop, clicks on the marksman tab, then clicks on last whisper, clicks on some random places, closes the shop and resumes.

Will post video tommorow since it's midnight, sorry

a couple suggestions

let me first say this is one of the best free leveling bots i have come across. very simple and does the job without error.

im unsure if this could be accomplished due to limitations, but in item shop, it can only purchase the complete item, not smaller items under the completed item's tree. other bots have struggled with this. is this something that could be improved on or is it a limitation of the code?

i had to change the scale of my hud and minimap. i didnt see it in the readme, but i was under the assumption that it could operate without having the change these settings. was it supposed to work as intended without changing hud settings or are there specific instructions on what the hud settings should be set to? thanks

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.