alfficcadenti / splinterlands-bot

GNU General Public License v3.0
127 stars 160 forks source link

add reset function #80

Closed Ziegurd closed 2 years ago

Ziegurd commented 2 years ago

Add restart bot functionality if an error occurred. Successfully tested on these events:

  1. login
  2. ECR below ECR_STOP_LIMIT

Refactor codes:

  1. anonymous start/main function, named to run
  2. ECR check script

Add 2 new functions:

  1. closeBrowser
  2. restart (to restart the bot)