iholston / lol-bot

An account leveling bot for League of Legends written in Python
MIT License
295 stars 46 forks source link

League Detection #155

Closed sonicwil closed 8 months ago

sonicwil commented 8 months ago

image Currently I see that the bot detects the league that is running through the manager, right? I would like some help so that the bot can detect the league, but first check the account of the computer that is logged in, for example in the image account 1 and perfi. Because he is currently accessing the league data from the other account

iholston commented 8 months ago

The bot does not support multiple league instances running on a single computer. And off the top of my head I'm not sure of a good solution for this particular issue

sonicwil commented 8 months ago

Don't you know of any possibility of checking the bot for lol according to the logged in account? I know the bot doesn't currently support it, but if possible, give me some ideas and I would try to do it, it would be very useful for me

QuePast commented 8 months ago

I think lcu stops working with second client and it's always connected to one when I was testing allow multiple clients attribute. I wasn't digging too much into it. Maybe the connection is switched into another port

iholston commented 8 months ago

It should be possible to do. I would look through https://github.com/KebsCS/KBotExt/tree/main and figure out exactly how he gets the port and header information for his lcu api requests. I think he gets all that info from the process information which could allow you to do the same thing rather than relying on the lockfile. Other than that I'm not really sure. Best of luck!