@aoijs/aoi.music
A powerful TypeScript-based JavaScript library that adds music-related properties and lays a solid foundation for music operations in aoi.js.
🚀 Setup
To get started with @aoijs/aoi.music, follow these simple steps:
-
Install @aoijs/aoi.music via npm:
npm install @aoijs/aoi.music
-
Import the Manager class and create a new instance:
const { Manager } = require("@aoijs/aoi.music");
const manager = new Manager({
devOptions: {
debug: false,
},
searchOptions: {
soundcloudClientId: "<YOUR_SOUNDCLOUD_CLIENT_ID>",
youtubeAuth: true,
youtubegl: "<YOUR_YOUTUBE_COUNTRY_CODE>",
youtubeClient: "WEB",
},
requestOptions: {
offsetTimeout: 1500,
soundcloudLikeTrackLimit: 10,
youtubePlaylistLimit: 20,
spotifyPlaylistLimit: 30,
},
});
📚 Documentation
If you're using aoi.js, you may check the documentation to learn more here.
Otherwise you can check these autogenerated docs