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

Update for Wiki

Open lt-kraken opened this issue 10 years ago • 2 comments

Hey,

So I have created a cmd file which starts the bot, and restarts upon crash. I noticed there is a Wiki page (https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Restarting-bot(s)), I'm however not allowed to edit the page.

Therefore, I'll update it here, in hope a moderator could fix it for me upon approval.


The following code applies to the 'dev' branch where a new configuration architecture is handled.

  1. Go to the root of your PokemonGo bot
  2. Richt-click inside the folder and create a new file, named something like "PokemonGo.cmd"
  3. Richt-click the file you just created, and click the 'Edit' option
  4. Copy paste the following code inside the file
  5. Save the file, and you're ready to go!
:Execute
@echo (%date% %time%) Initiating PokemonGo
python ./pokecli.py --config ./configs/config.json

IF ERRORLEVEL 1 GOTO :RETRY

:RETRY
@echo (%date% %time%) Ooooops, there was an error, let us try again!
GOTO :Execute

lt-kraken avatar Jul 29 '16 20:07 lt-kraken

There is an error in your CMD, I believe initiation line should be like this:

python ./pokecli.py --config ./configs/config.json

Without ./ it was not working for me (couldn`t find the file).

Yanush7 avatar Jul 29 '16 23:07 Yanush7

Might be a difference between Windows 7 and later versions. Edited the script :)

lt-kraken avatar Jul 29 '16 23:07 lt-kraken