3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 05:02:36 +01:00
This commit is contained in:
reality 2015-05-03 09:29:36 +00:00
parent a9dff5c39e
commit b440a232fc

View File

@ -67,6 +67,18 @@ var radio = function(dbot) {
event.reply('Couldn\'t find DJ ' + dj + ' on IRC :('); event.reply('Couldn\'t find DJ ' + dj + ' on IRC :(');
} }
}); });
},
'~nowplaying': function(event) {
if(this.listening) {
event.reply(dbot.say(a.server, a.name, dbot.t('now_playing', {
'name': this.data['icy-name'],
'song': title,
'url': this.data['icy-url']
})));
} else {
event.reply('Radio not playing.');
}
} }
}; };
this.commands['~request'].regex = [/^request (.*)/, 2]; this.commands['~request'].regex = [/^request (.*)/, 2];