Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Auto-restart and sleep mode #1389

Closed
Pyrofer opened this issue Jul 28, 2016 · 5 comments
Closed

[Suggestion] Auto-restart and sleep mode #1389

Pyrofer opened this issue Jul 28, 2016 · 5 comments

Comments

@Pyrofer
Copy link

Pyrofer commented Jul 28, 2016

Expected Behavior

After unhandled server output/crash restart by logging in again. Possible delay for login so as not to spam the servers

Sleep timer so it doesn't hunt 24/7 to avoid detection. Maybe only hunt for 8 hours of a day or always sleep during certain hours

Actual Behavior

N/A

Steps to Reproduce

N/A

Other Information

OS:
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

@ericksuryadinata
Copy link

ericksuryadinata commented Jul 28, 2016

read the wiki in section restarting bot, and softban, I think it's already clear ?

@ironbishop
Copy link

duplicate of #643, maybe fixed in #701

it's not the bot who need tweaking: the operator (you) is the one that needs to be clever enough to avoid botting for 8 hours at ludicrous speed...

@ferbeb
Copy link

ferbeb commented Jul 28, 2016

The script there is for Mac. I think the best setup would currently be a docker container that automatically restarts. As for myself, I'll probably use a shell script that checks for running screen sessions. A prerequisite is that the bot needs to terminate. I have no idea wether the expiring login token is still a thing, the bot did not stop in this event, rendering my approach useless. A health check would fix this, maybe that is already implemented, would be very interesting to know.

@ironbishop
Copy link

ironbishop commented Jul 28, 2016

you guys overthink. just write
pokecli.py ; sleep 10m ; pokecli.py ; sleep 10m ; pokecli.py ; sleep 10m ; pokecli.py ; sleep 10m ; pokecli.py ; sleep 10m ; ...
^_^

@AdaptCharm
Copy link
Contributor

Duplicate of #643

/closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants