From b440a232fc2286a60382612ec170cd2637d0e5f4 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 3 May 2015 09:29:36 +0000 Subject: [PATCH] [Close #639] --- modules/radio/radio.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/radio/radio.js b/modules/radio/radio.js index d2239c0..0bd3c37 100644 --- a/modules/radio/radio.js +++ b/modules/radio/radio.js @@ -67,6 +67,18 @@ var radio = function(dbot) { 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];