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
6f8dd2b0
Commit
6f8dd2b0
authored
May 27, 2015
by
Mindiell
Browse files
Retrieve title of urls, needed for rp command
parent
f253ab24
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
6f8dd2b0
...
@@ -201,9 +201,9 @@ class Wantzel(object):
...
@@ -201,9 +201,9 @@ class Wantzel(object):
user
=
re
.
search
(
"([^!]*)!"
,
user
).
group
(
1
)
user
=
re
.
search
(
"([^!]*)!"
,
user
).
group
(
1
)
Utils
.
debug
(
"Message received: %s %s %s"
%
(
user
,
channel
,
msg
))
Utils
.
debug
(
"Message received: %s %s %s"
%
(
user
,
channel
,
msg
))
# Whatever is done, get the title of an existing url in a message
# Whatever is done, get the title of an existing url in a message
#
title = ""
title
=
""
#
if "http" in msg:
if
"http"
in
msg
:
#
title, website = get_title(msg)
title
,
website
=
get_title
(
msg
)
# Never answer to botself
# Never answer to botself
if
user
!=
config
.
nickname
:
if
user
!=
config
.
nickname
:
# If it's a query, bot should answer to the user as the channel
# If it's a query, bot should answer to the user as the channel
...
...
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