Official Lyrics API wrapper of Alufi Bot
npm install @alufi/lyrics-apiAn official Lyrics API wrapper of Alufi Bot
js
console.log(require('@alufi/lyrics-api'));
`
- For Usage Basics
`js
const lyrics = require('@alufi/lyrics-api');// Only Lyrics
lyrics.get("SongTitle").then(console.log).catch(console.error);
// With Lyrics Data. optional default is false
lyrics.get("SongTitle", true).then(console.log).catch(console.error);
`
- For Usage With Asynchronus System JS
`js
const lyrics = require('@alufi/lyrics-api');(async() => {
try {
const result = await lyrics.get("SongTitle");
console.log(result); // get Lyrics
} catch(Error) {
console.error(Error); // get Error
}
})();
`Example Result
- Only Lyrics (text)
`bash
Lyrics Content...
...
`
- With Lyrics Data (JSON)
`js
{
data: {
title: Lyrics Title,
artist: Lyrics Artist Name,
thumbnails: Lyrics Thumbnail URL,
lyrics: Lyrics Content
}
response: Lyrics Result Latency
}
``