Code Monkey home page Code Monkey logo

Comments (2)

G-IDEON avatar G-IDEON commented on June 11, 2024

The only thing I could catch from the logs was when I tried to include another track from the YouTube link:

main > ReferenceError: track is not defined 
││ main >     at module.exports (/bot/musicbot/events/Player/error.js:
││ main >     at PlayerEventsEmitter.emit (node:events:513:28)
││ main >     at PlayerEventsEmitter.emit (/bot/musicbot/node_modules/
││ main >     at StreamDispatcher.<anonymous> (/bot/musicbot/node_modu
││ main >     at StreamDispatcher.emit (node:events:513:28)
││ main >     at StreamDispatcher.playStream (/bot/musicbot/node_modul
││ main >     at runMicrotasks (<anonymous>)
││ main >     at processTicksAndRejections (node:internal/process/task_queues:96:5)
││ main >     at async GuildQueuePlayerNode.#performPlay (/bot/musicbot/node_modules/discord-player/dist/index .js
││ main >     at async GuildQueuePlayerNode.play (/bot/musicbot/node_modules/discord-player/dist/index.js:1045

Or

/bot/musicbot/events/Player/error.js:6
    .setAuthor({name: `The bot has encountered an unexpected error, report it to the Developers!`, iconURL: track.thumbnail})
                                                                                                                     ^

ReferenceError: track is not defined
    at module.exports (/bot/musicbot/events/Player/error.js:6:118)
    at PlayerEventsEmitter.emit (node:events:513:28)
    at PlayerEventsEmitter.emit (/bot/musicbot/node_modules/discord-player/dist/index.js:207:18)
    at StreamDispatcher.<anonymous> (/bot/musicbot/node_modules/discord-player/dist/index.js:1659:52)
    at StreamDispatcher.emit (node:events:513:28)
    at StreamDispatcher.playStream (/bot/musicbot/node_modules/discord-player/dist/index.js:2357:26)
    at async GuildQueuePlayerNode.#performPlay (/bot/musicbot/node_modules/discord-player/dist/index.js:1059:3)
    at async GuildQueuePlayerNode.play (/bot/musicbot/node_modules/discord-player/dist/index.js:1045:7)
    at async Object.execute (/bot/musicbot/commands/music/play.js:59:33)

I also see that when requesting history (with the /history command) there is music that is not playing, and it is indicated that the request type is via Spotify, and the link to the track is YouTube, although I have the spotifyBridge parameter set to false in my config

At the same time, tracks that have successfully played and ended are not displayed in / history

Track {
    requestedBy: User {
      id: '312873639248658432',
      bot: false,
      system: false,
      flags: [UserFlagsBitField],
      username: 'GIDEON',
      discriminator: '2518',
      avatar: '45cbe782cd4db9422d14b97b34081472',
      banner: undefined,
      accentColor: undefined
    },
    queryType: 'spotifySong',
    raw: {
      source: 'spotify',
      title: 'Back In Black',
      description: 'Back In Black by AC/DC',
      author: 'AC/DC',
      url: 'https://www.youtube.com/watch?v=pAgnJDJN4VA',
      thumbnail: 'https://i.scdn.co/image/ab67616d0000b2730b51f8d91f3a21e8426361ae',
      duration: '04:15',
      views: 0,
      requestedBy: [User],
      queryType: 'spotifySong'
    },

Also in the configuration, the option to access only when role present is enabled (true), but still everyone can use it.

 DJ: {
            enabled: true,
            roleName: 'DJ',

from music-bot.

itsjustyryr avatar itsjustyryr commented on June 11, 2024

Hi! Use the beta branch, as the main one is broken.

from music-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.