mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
fix youtube issue
This commit is contained in:
parent
b7ccc8c0e6
commit
3136db5cb4
@ -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
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user