forked from GitHub/dbot
yes
This commit is contained in:
parent
5abb1ab166
commit
44f46cfc75
@ -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),
|
||||
|
||||
|
3
modules/weather/config.json
Normal file
3
modules/weather/config.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"api_key": "no"
|
||||
}
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user