Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
wantzel
Commits
995ad567
Commit
995ad567
authored
Jun 05, 2018
by
Mindiell
Browse files
Testing timer answer is now done on the right channel.
parent
506e57e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
995ad567
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment