3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 21:22:38 +01:00
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,
'currentNick': nick
}, function(err, result) {
if(!err) {
dbot.api.event.emit('new_user', [ result ]);
callback(null, result);
} else {
callback(true, null);
}
if(!err) dbot.api.event.emit('new_user', [ result ]);
callback(err, result);
});
}.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',
'qs': {
'q': city,
'units': 'metric'
'units': 'metric',
'APPID': this.config.api_key
},
'json': true
}, function(err, response, body) {