From d598c08f34657b9e49f028fe295e7872564c92fe Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 5 Jan 2014 04:17:45 +0100 Subject: ircbot: controller unthreaded --- ircbot/contoller.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ircbot') diff --git a/ircbot/contoller.py b/ircbot/contoller.py index a6c005c3..9e728657 100755 --- a/ircbot/contoller.py +++ b/ircbot/contoller.py @@ -11,8 +11,8 @@ class NewsBot(irc.bot.SingleServerIRCBot): self.chan = chan self.to = timeout - def start(self): - self.bot = _thread.start_new_thread(irc.bot.SingleServerIRCBot.start, (self,)) +# def start(self): +# self.bot = _thread.start_new_thread(irc.bot.SingleServerIRCBot.start, (self,)) # def send(self, string): # if len(string) < 450: @@ -90,7 +90,6 @@ feedfile = 'new_feeds' bots = {} knews = NewsBot('knews') -knews.start() #config file reading F = open(feedfile, "r") @@ -103,3 +102,5 @@ for line in lines: bot = rssbot.RssBot(linear[1], linear[0]) bot.start() bots[linear[0]] = bot + +knews.start() -- cgit v1.2.3