1.0.6 • Published 2 months ago
llyrics v1.0.6
Install
npm install llyrics
# or
yarn add llyrics
Example
const findLyrics = require("llyrics"); // Import llyrics
client.on("interactionCreate", async (message) => {
let apiKey = "GENIUS_API_KEY"; // Your Genius API Key
let songName = "SONG_NAME"; // Song Name
await findLyrics(apiKey, songName);
const lyrics = findLyrics.lyrics; // To get the lyrics
const trackName = findLyrics.trackName; // To get the Track Name
const trackArtist = findLyrics.trackArtist; // To get the Track Artis
interaction.channel.send({
content: lyrics,
});
});
client.login("token");
Usage
Option | Type | Description | |
---|---|---|---|
apiKey | String | Genius API Key to fetch the lyrics from their API. https://genius.com/api-clients | |
songName | String | Song name to fetch the lyrics. |