cordlr-youtube
v0.0.1
Published
Cordlr Plugin to search for videos on YouTube.
Downloads
4
Readme
cordlr-youtube
Cordlr Plugin to search for videos on YouTube.
Installation
You can install cordlr-youtube as a npm package via:
npm install cordlr-youtube --save
Now append your corldr.json
file, and add cordlr-youtube
as a new plugin that Cordlr can load it.
// cordlr.json:
{
"token":"YourTokenHere",
"prefix":"!",
"loader":"cordlr-loader",
"plugins":[
// ...
"cordlr-help2",
"cordlr-youtube" // add this
]
}
Configuration
Since this plugin is using the official YouTube API a free API key from Google Developer Console is needed. (How To Video)
// cordlr.json
{
"token":"YourTokenHere",
"prefix":"!",
"loader":"cordlr-loader",
"plugins":[
// ...
"cordlr-help2",
"cordlr-youtube"
],
"cordlr-youtube": { // add this
"apiKey": "YOUR-YOUTUBE-API-KEY" // set your API key here
}
}
Usage
Search for a video on YouTube:
!yt <search term>
Example Usage: !yt daft punk
License
MIT © ciruz