From 82fb3eacf81826605e2ac98f32753f4a6edbeace Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 10 Jan 2013 18:00:15 +0000 Subject: [PATCH] user pass in right place --- modules/dent/dent.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/dent/dent.js b/modules/dent/dent.js index 5ac7a5e..2361cfa 100644 --- a/modules/dent/dent.js +++ b/modules/dent/dent.js @@ -1,10 +1,10 @@ var request = require('request'); var dent = function(dbot) { - var username = dbot.config.dent.username; - var password = dbot.config.dent.password; var commands = { '~dent': function(event) { + var username = dbot.config.dent.username; + var password = dbot.config.dent.password; var auth = "Basic " + new Buffer(username + ":" + password).toString("base64"); request.post({ @@ -16,6 +16,7 @@ var dent = function(dbot) { }, function(error, response, body) { event.reply('Status posted (probably).'); + console.log(body); }); } };