Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit c26e4fc

Browse files
author
Tom Bell
committed
Merge pull request #944 from nickhammond/patch-2
Specify underscore & underscore.string dependencies
2 parents ab488e4 + 374b8bf commit c26e4fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/scripts/wikipedia.coffee

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Dependencies:
55
# "htmlparser": "1.7.6"
66
# "soupselect: "0.2.0"
7+
# "underscore": "1.3.3"
8+
# "underscore.string": "2.3.0"
79
#
810
# Configuration:
911
# None
@@ -21,14 +23,14 @@ HTMLParser = require "htmlparser"
2123

2224
module.exports = (robot) ->
2325
robot.respond /(wiki)( me)? (.*)/i, (msg) ->
24-
wikiMe msg, msg.match[3], (text, url) ->
26+
wikiMe robot, msg.match[3], (text, url) ->
2527
msg.send text
2628
msg.send url if url
2729

28-
wikiMe = (msg, query, cb) ->
30+
wikiMe = (robot, query, cb) ->
2931
articleURL = makeArticleURL(makeTitleFromQuery(query))
3032

31-
msg.http(articleURL)
33+
robot.http(articleURL)
3234
.header('User-Agent', 'Hubot Wikipedia Script')
3335
.get() (err, res, body) ->
3436
return cb "Sorry, the tubes are broken." if err

0 commit comments

Comments
 (0)