This commit is contained in:
reality 2015-11-17 18:52:49 +00:00
parent 5abb1ab166
commit 44f46cfc75
3 changed files with 7 additions and 7 deletions

View File

@ -18,12 +18,8 @@ var users = function(dbot) {
'primaryNick': nick, 'primaryNick': nick,
'currentNick': nick 'currentNick': nick
}, function(err, result) { }, function(err, result) {
if(!err) { if(!err) dbot.api.event.emit('new_user', [ result ]);
dbot.api.event.emit('new_user', [ result ]); callback(err, result);
callback(null, result);
} else {
callback(true, null);
}
}); });
}.bind(this), }.bind(this),

View File

@ -0,0 +1,3 @@
{
"api_key": "no"
}

View File

@ -15,7 +15,8 @@ var weather = function(dbot) {
'url': this.ApiRoot + 'weather', 'url': this.ApiRoot + 'weather',
'qs': { 'qs': {
'q': city, 'q': city,
'units': 'metric' 'units': 'metric',
'APPID': this.config.api_key
}, },
'json': true 'json': true
}, function(err, response, body) { }, function(err, response, body) {