Skip to content

How doe #252

Answered by xenodirt
aimankhairy asked this question in Q&A
Oct 20, 2020 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Paste this code on lyrics.js:

const {MessageEmbed, splitMessage} = require("discord.js");
const Genius = require("genius-lyrics");
const geniusClient = new Genius.Client("YOUR GENIUS ACCESS TOKEN HERE");

module.exports = {
  name: "lyrics",
  description: "Searches the lyrics of a song.",
  async execute(message, args) {
    if (!args.length) {
        return message.channel.send(`How to use: ${message.client.prefix}lyrics <song name>\nRecommended for better results: ${message.client.prefix}lyrics <Song Artist> - <Song Name>`);
    }
    
    let query = args.slice(0).join(` `)
    const search = await geniusClient.songs.search(query);
    const track = search[0];
    
    try {
    lyri…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aimankhairy
Comment options

Answer selected by aimankhairy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants