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