diff --git a/modules/reddit/reddit.js b/modules/reddit/reddit.js index 47f2482..009a913 100644 --- a/modules/reddit/reddit.js +++ b/modules/reddit/reddit.js @@ -82,12 +82,13 @@ var reddit = function(dbot) { 'comments': info.num_comments, 'score': info.score, 'up': info.ups, - 'down': info.downs + 'down': info.downs, + 'url': this.ApiRoot + matches[4] }); if(info.over_18) infoString += ' [NSFW]'; event.reply(infoString); } - }); + }.bind(this)); } else if(matches[2]) { // It's a subreddit this.api.getSubredditInfo(matches[2], function(info) { if(info) { diff --git a/modules/reddit/strings.json b/modules/reddit/strings.json index 2a93967..bef4de0 100644 --- a/modules/reddit/strings.json +++ b/modules/reddit/strings.json @@ -3,7 +3,7 @@ "en": "[{display_name} has {subscribers} subscribers ({active} active)]" }, "about_post": { - "en": "[Post by {poster} in {subreddit} - Comments: {comments}, Score: {score} ({up}|{down})]" + "en": "[Post by {poster} in {subreddit} - Comments: {comments}, Score: {score} ({up}|{down})] - {url}" }, "about_comment": { "en": "[Comment by {poster} in {subreddit} - Score: {score} ({up}|{down})]"