Method | Description | |
---|---|---|
onCommandYoutube ( string $query ) : void | Returns the first result of a YouTube search. | |
onLoad ( ) : void | Checks for dependencies. | |
renderUrl ( array $parsed ) : boolean | Renders YouTube URLs. |
Method | Description | |
---|---|---|
queryYoutube ( string $query ) : object | Queries the YouTube video search web service, processes the first result, and sends a message back to the current event source. |
public onCommandYoutube ( string $query ) : void | ||
$query | string | Search query |
return | void |
protected queryYoutube ( string $query ) : object | ||
$query | string | Search term |
return | object | YouTube result object |