0.5.1 • Published 6 years ago
@tohru/chopin v0.5.1
Chopin
Your romantic composer and virtuoso pianist.
Chopin is heavily influenced by cassette with slight modifications for my own usage.
I do not support any usage currently.
Usage
Chopin relies on the following packages to be installed: prism-media
, simple-youtube-api
, snekfetch
, ytdl-core
The primary reason for this is because the goal is to make handling music in discord.js via youtube a lot easier for myself.
General usage:
const { Playlist, YouTubeService } = require('@tohru/chopin');
const playlist = new Playlist();
const ytService = new YouTubeService('your-api-key');
playlist.add('some-song-url', [ytService]);
From this point on you have access to all methods and properties a playlist and song has.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
Chopin © iCrawl. Authored and maintained by iCrawl.
GitHub @iCrawl