online-go / gtp2ogs

GTP Wrapper to allow bots to interface with the Online-Go.com Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

close and open bots at specific times (ex: at 09:30 PM)

wonderingabout opened this issue · comments

it would be nice to be able to close and open our bot with a schedule, so that we dont have to worry of accepting games before sleep time / shutdown time / scheduled leave

then automatically reopen the bot with a timetable for everyday of the week
an attempt was made, almost finished but not tested in #238

we may look at it as a future reference or comparison

commented

I would prefer to:

  1. Reject games with a long time setting after n hour.
  2. Rejcet all games after m hour.
  3. Close bot if no games active after m hour.

We could start with 3 and work our way up later.

i like 1 :)
then i can simplify current code a lot without doing all the days of the week, only for current day

and the easiest one would just be:

  1. Close bot after m hour :)