Skip to content

aoijs/aoi.music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aoi.music

@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:

  1. Install @aoijs/aoi.music via npm:

    npm install @aoijs/aoi.music
  2. Import the Manager class and create a new instance:

    const { Manager } = require("@aoijs/aoi.music");
    
    const manager = new Manager({
       devOptions: {
          debug: false, // Set to true for debugging purposes
       },
       searchOptions: {
          soundcloudClientId: "<YOUR_SOUNDCLOUD_CLIENT_ID>",
          youtubeAuth: true, // Options: TRUE or FALSE, default: TRUE
          youtubegl: "<YOUR_YOUTUBE_COUNTRY_CODE>", // default: US
          youtubeClient: "WEB", // Options: "WEB" | "ANDROID" | "YTMUSIC_ANDROID" | "YTMUSIC" | "YTSTUDIO_ANDROID" | "TV_EMBEDDED", default: WEB
       },
       requestOptions: {
          offsetTimeout: 1500, // Timeout in milliseconds for searching and skipping, default: 500
          soundcloudLikeTrackLimit: 10, // Limit the number of liked tracks from SoundCloud, default: -1
          youtubePlaylistLimit: 20, // Limit the number of tracks in a YouTube playlist, default: -1
          spotifyPlaylistLimit: 30, // Limit the number of tracks in a Spotify playlist, default: -1
       },
    });

📚 Documentation

If you're using aoi.js, you may check the documentation to learn more here.

Otherwise you can check these autogenerated docs

About

Addition of the Music properties and foundation for aoi.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7