mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
reddit debug
This commit is contained in:
parent
633e233d9d
commit
47d1f3ea31
@ -213,6 +213,7 @@ var reddit = function(dbot) {
|
|||||||
this.internalAPI.reloadChannelFeeds();
|
this.internalAPI.reloadChannelFeeds();
|
||||||
|
|
||||||
var rHandler = function(matches, name, callback) {
|
var rHandler = function(matches, name, callback) {
|
||||||
|
console.log('reddit is handling the link');
|
||||||
if(matches[6]) { // It's a comment
|
if(matches[6]) { // It's a comment
|
||||||
this.api.getCommentInfo(matches[4], matches[6], function(info) {
|
this.api.getCommentInfo(matches[4], matches[6], function(info) {
|
||||||
if(info) {
|
if(info) {
|
||||||
@ -229,7 +230,9 @@ var reddit = function(dbot) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if(matches[4]) { // It's a post
|
} else if(matches[4]) { // It's a post
|
||||||
|
console.log('it is a post');
|
||||||
this.api.getPostInfo(matches[4], function(info) {
|
this.api.getPostInfo(matches[4], function(info) {
|
||||||
|
console.log('got post info');
|
||||||
if(info) {
|
if(info) {
|
||||||
var infoString = dbot.t('about_post', {
|
var infoString = dbot.t('about_post', {
|
||||||
'title': info.title.trim(),
|
'title': info.title.trim(),
|
||||||
|
Loading…
Reference in New Issue
Block a user