mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
user pass in right place
This commit is contained in:
parent
bb977e94e2
commit
82fb3eacf8
@ -1,10 +1,10 @@
|
|||||||
var request = require('request');
|
var request = require('request');
|
||||||
|
|
||||||
var dent = function(dbot) {
|
var dent = function(dbot) {
|
||||||
var username = dbot.config.dent.username;
|
|
||||||
var password = dbot.config.dent.password;
|
|
||||||
var commands = {
|
var commands = {
|
||||||
'~dent': function(event) {
|
'~dent': function(event) {
|
||||||
|
var username = dbot.config.dent.username;
|
||||||
|
var password = dbot.config.dent.password;
|
||||||
var auth = "Basic " +
|
var auth = "Basic " +
|
||||||
new Buffer(username + ":" + password).toString("base64");
|
new Buffer(username + ":" + password).toString("base64");
|
||||||
request.post({
|
request.post({
|
||||||
@ -16,6 +16,7 @@ var dent = function(dbot) {
|
|||||||
},
|
},
|
||||||
function(error, response, body) {
|
function(error, response, body) {
|
||||||
event.reply('Status posted (probably).');
|
event.reply('Status posted (probably).');
|
||||||
|
console.log(body);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user