From 39acf4974160db6b5cd490dcaa9569c1d16e2930 Mon Sep 17 00:00:00 2001 From: yvesf Date: Mon, 15 Jun 2009 22:52:15 +0000 Subject: asd git-svn-id: http://xapek.org/svn/common/omegle@1137 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- megahal_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'megahal_bot.py') diff --git a/megahal_bot.py b/megahal_bot.py index c5a0f64..f1f3864 100644 --- a/megahal_bot.py +++ b/megahal_bot.py @@ -41,6 +41,7 @@ class MegahalBot(OmegleChat): if self.idlecount > 8: self.logger.info("Idle > 8. disconnect()") self.disconnect() + self.disconnect_event.set() else: self.logger.info("Idle count %s/8" % self.idlecount) self.respond("hey?") #restart the conv. @@ -61,7 +62,7 @@ class MegahalBot(OmegleChat): except: self.disconnect_event.set() return - time.sleep(random.randint(1,3)) + time.sleep(random.randint(2,5)) self.respond(message,prepend="\033[1A\033[2K\033[%sD"%(len(typestr))) #move up 1; delete line; move left %s def on_connect(self): -- cgit v1.2.1