3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

fix youtube issue

This commit is contained in:
reality 2013-08-11 17:33:47 +00:00
parent b7ccc8c0e6
commit 3136db5cb4

View File

@ -15,8 +15,9 @@ var youtube = function(dbot) {
this.commands = { this.commands = {
'~youtube': function(event) { '~youtube': function(event) {
var qs = _.clone(this.params);
request.get(this.ApiRoot + '/videos', { request.get(this.ApiRoot + '/videos', {
'qs': _.extend(this.params, { 'qs': _.extend(qs, {
'q': event.input[1], 'q': event.input[1],
'max-results': 1 'max-results': 1
}), }),