Giter Site home page Giter Site logo

music-bot's People

Contributors

dependabot[bot] avatar elbkr avatar imgbotapp avatar inoshell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

music-bot's Issues

Interface recommendation and multi-language support

It would be great if you could develop an interface as seen in the image. Also, if you consider adding multi-language support, please let me know for translations.

Turkish, French and Azerbaijani

EXAMPLE INTERFACE with BUTTONS:
discord_music_bot_play_interface

Music player aborted when playing long songs

When playing a short song in loop, there is no problem, but when playing a long song, the music player is aborted.
(after 10 ~ 30 mins)

But I don't know if this problem only happens to me.

(It seems to be a problem with ytdl-core. [version: 4.11.2])

Couldn't join the voice channel

When I do any command, I get this error:

[17-08-2022 18:25:58]: [Player] Couldn't join the voice channel
TypeError: channel.isVoice is not a function

TypeError: channel.isVoice is not a function
    at Queue.join (C:\Users\adrian\Desktop\dev\discord\music-bot\node_modules\discord-music-player\dist\managers\Queue.js:91:22)
    at Bot.play (C:\Users\adrian\Desktop\dev\discord\music-bot\src\player\functions\play.js:25:17)
    at Play.exec (C:\Users\adrian\Desktop\dev\discord\music-bot\src\commands\music\play.js:88:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\discord\music-bot\src\events\interactions\slashCommands.js:15:13)
C:\Users\adrian\Desktop\dev\discord\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101
    if (this.deferred || this.replied) throw new Error(ErrorCodes.InteractionAlreadyReplied);
                                             ^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
    at ChatInputCommandInteraction.reply (C:\Users\adrian\Desktop\dev\discord\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101:46)
    at Bot.play (C:\Users\adrian\Desktop\dev\discord\music-bot\src\player\functions\play.js:42:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\discord\music-bot\src\events\interactions\slashCommands.js:15:13) {
  [Symbol(code)]: 90
}

How can I fix this?

Couldn't join the voice channel

I was about to fix it but I saw that the problem is in your code. You updated discord.js without getting the last version of this repository, which already has all the changes correctly made

Originally posted by @elbkr in #98 (comment)

I cloned the repository again just now and typed in "npm i", but I still get the same error whenever I try to use any command?

TypeError: channel.isVoice is not a function

TypeError: channel.isVoice is not a function
    at Queue.join (C:\Users\adrian\Desktop\dev\music-bot\node_modules\discord-music-player\dist\managers\Queue.js:91:22)
    at Bot.play (C:\Users\adrian\Desktop\dev\music-bot\src\player\functions\play.js:25:17)
    at Play.exec (C:\Users\adrian\Desktop\dev\music-bot\src\commands\music\play.js:88:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\music-bot\src\events\interactions\slashCommands.js:15:13)
C:\Users\adrian\Desktop\dev\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101
    if (this.deferred || this.replied) throw new Error(ErrorCodes.InteractionAlreadyReplied);
                                             ^

Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
    at ChatInputCommandInteraction.reply (C:\Users\adrian\Desktop\dev\music-bot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:101:46)
    at Bot.play (C:\Users\adrian\Desktop\dev\music-bot\src\player\functions\play.js:42:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SlashCommands.exec (C:\Users\adrian\Desktop\dev\music-bot\src\events\interactions\slashCommands.js:15:13) {
  [Symbol(code)]: 90
}

There was an error with the music player Invalid regular expression: missing /

Ahh, I updated discord-music-player to the newest version, and it works now, ty!

Originally posted by @dxkyy in #99 (comment)

Sorry for opening up all these issues, but whenever I do /play, the bot joins the VC and then I get this error:

[18-08-2022 01:07:17]: [Player] There was an error with the music player
Invalid regular expression: missing /
[18-08-2022 01:07:17]: [Player] There was an error with the music player
Invalid regular expression: missing /

This also happens for example when I do /search. The bot then joins and I can then send the track number, but when I send the track number I get the same error again.

Invalid bitfield flag or number

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: MANAGE_GUILD.

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: MANAGE_GUILD.
    at Function.resolve (/home/ubuntu/discord-music/node_modules/discord.js/src/util/BitField.js:168:11)
    at PermissionsBitField.has (/home/ubuntu/discord-music/node_modules/discord.js/src/util/BitField.js:60:28)
    at PermissionsBitField.has (/home/ubuntu/discord-music/node_modules/discord.js/src/util/PermissionsBitField.js:92:82)
    at Skip.exec (/home/ubuntu/discord-music/src/commands/music/skip.js:48:66)
    at SlashCommands.exec (/home/ubuntu/discord-music/src/events/interactions/slashCommands.js:15:23)
    at Bot.<anonymous> (/home/ubuntu/discord-music/src/struct/Bot.js:144:80)
    at Bot.emit (node:events:513:28)
    at InteractionCreate.exec (/home/ubuntu/discord-music/src/events/interactions/interactionCreate.js:15:93)    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)```

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.