mirror of
https://github.com/reality/dbot.git
synced 2025-01-12 04:52:36 +01:00
Merge branch 'betterusers' of https://github.com/reality/depressionbot into betterusers
This commit is contained in:
commit
038af50eaa
@ -21,6 +21,7 @@ var radio = function(dbot) {
|
||||
|
||||
stream.on('response', function(res) {
|
||||
this.data = res.headers;
|
||||
if(res.headers['icy-name']) {
|
||||
_.each(this.config.announce, function(a) {
|
||||
dbot.say(a.server, a.name, dbot.t('now_online', {
|
||||
'name': res.headers['icy-name'],
|
||||
@ -28,6 +29,7 @@ var radio = function(dbot) {
|
||||
'url': res.headers['icy-url']
|
||||
}));
|
||||
});
|
||||
}
|
||||
}.bind(this));
|
||||
|
||||
stream.on('metadata', function(metadata) {
|
||||
|
Loading…
Reference in New Issue
Block a user