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

Commit 08cca3f

Browse files
committed
Update api url
fix: Error occured parsing response body: SyntaxError: Unexpected token <
1 parent 3a2a070 commit 08cca3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/random-user.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ String::capitalize = ->
1616
module.exports = (robot) ->
1717

1818
robot.respond /(random|generate) user/i, (msg) ->
19-
msg.http('http://randomuser.me/g/')
19+
msg.http('http://api.randomuser.me/')
2020
.get() (err, res, body) ->
2121
if err?
2222
msg.reply "Error occured generating a random user: #{err}"

0 commit comments

Comments
 (0)