kabaka/Terminus-Bot — Issue #3: Add mechanism for periodic functions
Author: kabaka
Created: 2011-11-22 17:04:45+00:00
State: open

We need some way to run things from time to time, such as for writing the database to disk, or sending server pings (in case the server does not ping us for some reason).

The previous version of Terminus-Bot had a scheduler thread which checked for tasks with expired timestamps every second (or was it every five?). We can do better than that. Running when we receive a server ping would be fine, but we need to be able to ping the server at least to verify the connection is still active.