Commit 995ad567 authored by Mindiell's avatar Mindiell

Testing timer answer is now done on the right channel.

parent 506e57e4
......@@ -37,7 +37,7 @@ class Wantzel(object):
self.irc = IrcClientFactory(config)
self.irc.set_privmsg = self.set_privmsg
reactor.connectTCP(config.server, config.port, self.irc)
self.test_timer = False
self.test_timer = ""
# Loop call
self.loop = task.LoopingCall(self.timer)
self.loop.start(config.timer)
......@@ -48,9 +48,9 @@ class Wantzel(object):
"""
Log.debug("Timer called")
# Testing timer ?
if self.test_timer:
self.send_message("#lqdn-travail", "Timer fonctionnel!")
self.test_timer = False
if self.test_timer!="":
self.send_message(self.test_timer, "Timer fonctionnel!")
self.test_timer = ""
# Tweeting Press reviews f necessary
self.rp.tweet()
# Bot tries to list RP channel users, if it can't, then it is no more an op and shall
......@@ -174,7 +174,7 @@ class Wantzel(object):
except Exception:
pass
elif result=="TEST_REACTOR":
self.test_timer = True
self.test_timer = channel
self.send_message(channel, "Test du timer en cours...")
else:
self.send_message(channel, result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment