From 47d1f3ea317d0d7327c43dd13dfd51b5f0c4367c Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 21 Dec 2013 19:00:00 +0000 Subject: [PATCH] reddit debug --- modules/reddit/reddit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/reddit/reddit.js b/modules/reddit/reddit.js index 8d9d189..344ad40 100644 --- a/modules/reddit/reddit.js +++ b/modules/reddit/reddit.js @@ -213,6 +213,7 @@ var reddit = function(dbot) { this.internalAPI.reloadChannelFeeds(); var rHandler = function(matches, name, callback) { + console.log('reddit is handling the link'); if(matches[6]) { // It's a comment this.api.getCommentInfo(matches[4], matches[6], function(info) { if(info) { @@ -229,7 +230,9 @@ var reddit = function(dbot) { } }); } else if(matches[4]) { // It's a post + console.log('it is a post'); this.api.getPostInfo(matches[4], function(info) { + console.log('got post info'); if(info) { var infoString = dbot.t('about_post', { 'title': info.title.trim(),