3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-26 03:54:18 +01:00

try again

This commit is contained in:
reality 2014-09-18 03:31:59 +00:00
parent e1732ff26a
commit 6b52141245

View File

@ -32,7 +32,7 @@ var radio = function(dbot) {
stream.on('metadata', function(metadata) { stream.on('metadata', function(metadata) {
var title = icecast.parseMetadata(metadata).StreamTitle; var title = icecast.parseMetadata(metadata).StreamTitle;
if(!_.isUndefined(title)) { // sowwy jesus if(!_.isUndefined(title) && this.data['icy-name']) { // sowwy jesus
_.each(this.config.announce, function(a) { _.each(this.config.announce, function(a) {
dbot.say(a.server, a.name, dbot.t('now_playing', { dbot.say(a.server, a.name, dbot.t('now_playing', {
'name': this.data['icy-name'], 'name': this.data['icy-name'],