Closed iholston closed 1 year ago
I saw only one account/pw, any way to add more?
You need to do a little coding to add more, you can set up a database and have the bot retrieve credentials from the database or you can store them in a text file and read them in from a text file or you could hard code them into the accounts.py file.
Hi!
Can you give an example on how we can set up it? Sorry don't know how to code but i do know how things work.
@markormega do you have a database already set up or do just have a list of league of legends accounts?
i don't have a database yet, but i do have my complete list of League of Legends accounts
So in broad terms what you should do is set your list of league of legends accounts up in json format or another similar format and look like [ {"username":"name1", "password":"pass1", "level":0}, {"username":"name2", "password":"pass2", "level":0}, ]
then in the accounts.py read in the file and return the username of an account that is not level 30, same for password, and then the setaccountsasleveled func should set the level of the particular account to 30. its relatively simple and should work for a small scale bot farm just fine.
Can you give a guide on how to implement a database with the accounts in the bot? I tried to do it in different ways but I couldn't.
Edit1
How do I make the bot jump to another account if the one he tried is level 30?
Edit2
Can I get the bot to view the account level and update the database and log into another account if it is level 30?
Setting up the database @dio1rodrigues is a bit involved. If you can't get it to work I would simply use a text file similar to my response to @markormega.
The bot will automatically log out when the account is level thirty. It is explained in the readme, if you implement the set-account-to-level-thirty method in account.py, then it should select a new account if implement the get username/password functions to select a non-level30 account
How to implement more then one account in accounts.py ?
Originally posted by @kasperzi in https://github.com/iholston/lol-bot/issues/6#issuecomment-1574335749