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

Automatic Restart on Mac?

Open drees5 opened this issue 10 years ago • 5 comments

I know this isn't really an issue but is there any way to make bots restart automatically after crash?

drees5 avatar Aug 01 '16 07:08 drees5

use daemon ...

sayasemut avatar Aug 01 '16 07:08 sayasemut

@drees5 yes, if a bot crashes you can automatically restart it using a simple bash script which was mentioned by @MeGaPk . All you need to do is put a bash script file in PokemonGo-Bot folder and run it.

#!/bin/bash while true do ./pokecli.py echo ">pokecli exited... restarting..."; sleep 5; done

Now save save this file asstart.sh and put it in PokemonGo-Bot . Now do chmod u+x start.sh in terminal. Start the bot using this all the time./start.sh Duplicate of #948

leovarmak avatar Aug 01 '16 07:08 leovarmak

https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Restarting-bot(s)

@leovarmak how is the script behavior with multiple tabs in terminal started all with -cf and different config settings?

Philipp59 avatar Aug 01 '16 07:08 Philipp59

many times the bot just freeze until I press cmd+c and start it again, is it possible to restart bot every hour automatically?

Di9 avatar Aug 01 '16 09:08 Di9

@Philipp59 are you talking about Dev ?

leovarmak avatar Aug 01 '16 10:08 leovarmak