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

Commit 374b8bf

Browse files
committed
change @http to @robot.http to remove deprecation notice
1 parent 989e48f commit 374b8bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/wikipedia.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ HTMLParser = require "htmlparser"
2323

2424
module.exports = (robot) ->
2525
robot.respond /(wiki)( me)? (.*)/i, (msg) ->
26-
wikiMe msg, msg.match[3], (text, url) ->
26+
wikiMe robot, msg.match[3], (text, url) ->
2727
msg.send text
2828
msg.send url if url
2929

30-
wikiMe = (msg, query, cb) ->
30+
wikiMe = (robot, query, cb) ->
3131
articleURL = makeArticleURL(makeTitleFromQuery(query))
3232

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

0 commit comments

Comments
 (0)