From 436fcd11326210bd1c836b1c99d9c4ea0eb69c60 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 3 Nov 2010 22:50:34 -0500 Subject: [PATCH] provide timeout to the megahal system, so that the bot doesn't spin forever on a reply not that that just happened or anything --- modules/MegaHAL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/MegaHAL.py b/modules/MegaHAL.py index 62fc32b..e2cd40a 100644 --- a/modules/MegaHAL.py +++ b/modules/MegaHAL.py @@ -37,7 +37,7 @@ class MegaHAL(Module): try: filename = self.config.get(self.__class__.__name__, 'brainfile') - self.megahal = megahal.MegaHAL(None, filename) + self.megahal = megahal.MegaHAL(None, filename, 5) except NoOptionError: self.megahal = megahal.MegaHAL()