3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +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 = {
'~youtube': function(event) {
var qs = _.clone(this.params);
request.get(this.ApiRoot + '/videos', {
'qs': _.extend(this.params, {
'qs': _.extend(qs, {
'q': event.input[1],
'max-results': 1
}),