Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The bot crashes with the command /music lyrics. #1077

Closed
1 task done
felipevelascohz opened this issue Dec 6, 2024 · 3 comments
Closed
1 task done

[Bug]: The bot crashes with the command /music lyrics. #1077

felipevelascohz opened this issue Dec 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working unverified

Comments

@felipevelascohz
Copy link

What happened?

The bot crashes when using the /music lyrics command.

Reproduction

The issue is related to the following line. Locally, I modified that line to const lyric = response.text, and it works.

Package

plugin-lava-player

Relevant log output

const lyric = response.lines.map((line) => line.line).join("\n");
                                     ^

TypeError: Cannot read properties of null (reading 'map')
    at Command.lyrics (file:///Users/felipevelasco/Learning/discord-bot/node_modules/@discordx/plugin-lava-player/dist/plugins/lavalyrics/index.js:61:38)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async next (file:///Users/felipevelasco/Learning/discord-bot/node_modules/discordx/dist/index.mjs:1093:15)

Node.js v22.8.0

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vijayymmeena
Copy link
Member

@felipevelascohz are you using latest plugins? based on there README page of lyrics. lines should exist. Please verify the plugin version you are using. So that I can cross check.

Thank you.

@felipevelascohz
Copy link
Author

felipevelascohz commented Dec 11, 2024

These are the versions of the plugins I am using:

plugins:
    - dependency: "dev.lavalink.youtube:youtube-plugin:1.10.2"
      snapshot: false
    - dependency: "com.github.topi314.lavalyrics:lavalyrics-plugin:1.0.0"
    - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.1.1

@vijayymmeena
Copy link
Member

image

@felipevelascohz I have tested. I am not able to verify your issue.

Also please upgrade plugin dependencies to latest.

lavalink:
  plugins:
    - dependency: "dev.lavalink.youtube:youtube-plugin:1.11.3"
    - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.3.0"
    - dependency: "com.github.topi314.lavalyrics:lavalyrics-plugin:1.0.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified
Projects
None yet
Development

No branches or pull requests

2 participants