Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aoijs/aoi.music

Addition of the Music properties and foundation for aoi.js
https://github.com/aoijs/aoi.music

akarui aoijs discord music

Last synced: about 1 month ago
JSON representation

Addition of the Music properties and foundation for aoi.js

Awesome Lists containing this project

README

        



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:

```bash
npm install @aoijs/aoi.music
```

2. Import the Manager class and create a new instance:

```javascript
const { Manager } = require("@aoijs/aoi.music");

const manager = new Manager({
devOptions: {
debug: false, // Set to true for debugging purposes
},
searchOptions: {
soundcloudClientId: "",
youtubeAuth: true, // Options: TRUE or FALSE, default: TRUE
youtubegl: "", // 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](https://aoi.js.org/extensions/aoi.music/aoimusic-introduction).

Otherwise you can check [these autogenerated docs](https://aoijs.github.io/aoi.music/)