mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +01:00
remove debugging. note: offload timers to appropriate clllllosure
This commit is contained in:
parent
148535e7de
commit
fe0cbf048b
@ -97,7 +97,6 @@ var reddit = function(dbot) {
|
||||
},
|
||||
|
||||
'getPostInfo': function(name, callback) {
|
||||
console.log('MAKIN A REQUEST');
|
||||
request.get({
|
||||
'url': this.ApiRoot + 'comments/' + name + '.json',
|
||||
'json': true,
|
||||
@ -129,7 +128,6 @@ var reddit = function(dbot) {
|
||||
},
|
||||
|
||||
'getNewPosts': function(sr, last, callback) {
|
||||
console.log('MAKIN A REQUEST');
|
||||
request.get({
|
||||
'url': this.ApiRoot + 'r/' + sr + '/new.json',
|
||||
'json': true,
|
||||
@ -209,7 +207,6 @@ var reddit = function(dbot) {
|
||||
this.commands['~rmredditfeed'].access = 'moderator';
|
||||
|
||||
this.onDestroy = function() {
|
||||
console.log('call de ondestroy');
|
||||
for(i=0;i<this.ints.length;i++) {
|
||||
clearInterval(this.ints[i]);
|
||||
}
|
||||
@ -219,7 +216,6 @@ 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) {
|
||||
@ -236,9 +232,7 @@ 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(),
|
||||
|
Loading…
Reference in New Issue
Block a user