mirror of
https://github.com/reality/dbot.git
synced 2024-12-26 12:42:51 +01:00
[Close #639]
This commit is contained in:
parent
a9dff5c39e
commit
b440a232fc
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user