PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

[Suggestion] Add support for separate json file for credentials

Open gregzetko opened this issue 10 years ago • 5 comments

Maintaining more than 3 config files is a nightmare, and since new parameters are being added rapidly, it would be nice to have one config file with bot specific credentials, and one config file for general parameters like tasks. Thoughts?

gregzetko avatar Aug 10 '16 03:08 gregzetko

Yes, this is a good idea.

tr33s avatar Aug 10 '16 03:08 tr33s

I use separate config1.json/config2.json files and just created new run.sh files to point to each config. It seems to work ok.

flopk avatar Aug 10 '16 05:08 flopk

The complications happen when they change something in the config. ie: Change the way spinning pokestops work, then you need to change that in both files. Which is fine if you only have 2, but when you have like 4-5 it is pretty annoying if you have to change EVERY SINGLE ONE. I am proposing the idea that you make cred1.json,cred2.json,cred3.json, etc. with only the Usernames/passwords/Google API keys in it, and config.json with everything else, and if you need to change something, you would be able to change it in one place. (In config.json)

gregzetko avatar Aug 10 '16 05:08 gregzetko

Create different shell files as @tr33s suggesting, but use the -u, -p, -k parameters when launching pokecli.py

Edit - that way you can maintain your credentials via shell files as you please, and also has the potential for different config files if you choose, or a master config file for all of them that you can update as new features are added

Ph4i1ur3 avatar Aug 10 '16 05:08 Ph4i1ur3

fixed in 61de70f7829066edb THANK YOU!

gregzetko avatar Aug 29 '16 04:08 gregzetko