forked from GitHub/dbot
yes
This commit is contained in:
parent
5abb1ab166
commit
44f46cfc75
@ -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),
|
||||||
|
|
||||||
|
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',
|
'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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user