3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

remove a bunch of debugging output

This commit is contained in:
reality 2013-08-12 21:59:38 +00:00
parent 154a0b30fe
commit a3d18884aa
2 changed files with 0 additions and 6 deletions

View File

@ -43,7 +43,6 @@ var pages = function(dbot) {
dbot.api.users.resolveUser(server, nick, function(user) { dbot.api.users.resolveUser(server, nick, function(user) {
var notifies = this.pending[user.id]; var notifies = this.pending[user.id];
console.log(notifies);
res.render('missing_notifies', { res.render('missing_notifies', {
'name': dbot.config.name, 'name': dbot.config.name,
'user': nick, 'user': nick,

View File

@ -54,15 +54,10 @@ var youtube = function(dbot) {
this.onLoad = function() { this.onLoad = function() {
dbot.api.link.addHandler(this.name, this.LinkRegex, dbot.api.link.addHandler(this.name, this.LinkRegex,
function(match, name, callback) { function(match, name, callback) {
console.log('DEBUG: well it got to the callback');
request.get(this.ApiRoot + '/videos/' + match[2], { request.get(this.ApiRoot + '/videos/' + match[2], {
'qs': this.params, 'qs': this.params,
'json': true 'json': true
}, function(error, response, body) { }, function(error, response, body) {
console.log('DEBUG: well it got to the callback of the callback');
console.log('DEBUG: ' + match[2]);
console.log('DEBUG: ' + error);
console.log(body);
if(_.isObject(body) && _.has(body, 'entry')) { if(_.isObject(body) && _.has(body, 'entry')) {
var v = body.entry; var v = body.entry;
if(!_.has(v, 'yt$rating')) { if(!_.has(v, 'yt$rating')) {