Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guinness
wantzel
Commits
fae4e862
Commit
fae4e862
authored
May 22, 2015
by
Mindiell
Browse files
No more hello message
parent
ca112f58
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
fae4e862
...
@@ -133,7 +133,6 @@ class Wantzel(object):
...
@@ -133,7 +133,6 @@ class Wantzel(object):
This method set the methods to call for each callback received from IRC.
This method set the methods to call for each callback received from IRC.
"""
"""
self
.
irc
.
client
.
privmsg
=
self
.
on_privmsg
self
.
irc
.
client
.
privmsg
=
self
.
on_privmsg
self
.
irc
.
client
.
joined
=
self
.
on_joined
def
send_message
(
self
,
channel
,
messages
):
def
send_message
(
self
,
channel
,
messages
):
"""
"""
...
@@ -196,17 +195,6 @@ class Wantzel(object):
...
@@ -196,17 +195,6 @@ class Wantzel(object):
if
title
and
website
:
if
title
and
website
:
self
.
send_message
(
channel
,
messages
[
"title"
]
%
(
title
,
website
))
self
.
send_message
(
channel
,
messages
[
"title"
]
%
(
title
,
website
))
def
on_joined
(
self
,
channel
):
"""
Say hello to everyone.
"""
print
(
"Joined channel %s"
%
channel
)
# Specific message for specific channel
if
"hello_"
+
channel
[
1
:]
in
messages
:
self
.
send_message
(
channel
,
messages
[
"hello_"
+
channel
[
1
:]])
else
:
self
.
send_message
(
channel
,
messages
[
"hello"
])
def
help
(
self
,
user
,
channel
,
msg
):
def
help
(
self
,
user
,
channel
,
msg
):
"""
"""
Show global help.
Show global help.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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