Use idle_proc() for keepalive
commit732c23c1f55e6cb95581a1e610cd08893cce07b6
authorJustin Forest <justin.forest@gmail.com>
Thu, 11 Nov 2010 06:57:35 +0000 (11 09:57 +0300)
committerThomas Perl <m@thp.io>
Mon, 22 Nov 2010 23:23:14 +0000 (23 00:23 +0100)
treebb28c1edc238fe8e8524c46c8ee6dcbb8041e29e
parent0222498688368df16c693aaff229e6c30cb903af
Use idle_proc() for keepalive

Set self.PING_FREQUENCY to the number of seconds of allowed inactivity time.
The bot will send a ping message to the server and if there's no reply in
self.PING_TIMEOUT seconds, will call the self.on_ping_timeout() method which,
by default, shuts the bot down.
jabberbot.py