summaryrefslogtreecommitdiffstats
path: root/ircbot/contoller.py
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-05 04:17:45 +0100
committerlassulus <lassulus@googlemail.com>2014-01-05 04:17:45 +0100
commitd598c08f34657b9e49f028fe295e7872564c92fe (patch)
tree253271ed94b966c2dc5fe973c2a3104da48acb75 /ircbot/contoller.py
parent903cff098911de49e1e529b33a75021ccaf55fcf (diff)
ircbot: controller unthreaded
Diffstat (limited to 'ircbot/contoller.py')
-rwxr-xr-xircbot/contoller.py7
1 files changed, 4 insertions, 3 deletions
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()