Giter Club home page Giter Club logo

musicbot's Introduction

Music Bot

🎵⚡ A fast and easy to use Discord.JS 14 music bot that supports YouTube, Spotify and SoundCloud sources to play music off! ⚡🎵

GitHub Repo stars GitHub forks GitHub Issues GitHub commit activity (branch)

✨ Music Bot Features

  • Playback support for: YouTube, Spotify (with YT Search), SoundCloud
  • Fast and optimized music system using play-dl
  • Key-less YouTube support
  • Slash Commands

❓ How to run

  • Install latest Node.JS LTS and Git.
  • Install the bot's dependencies (pnpm, npm or whatever you use).
  • Modify the Bot.ts and config.ts files in ./src/components/ for your bot's configuration.
  • Run the build script.
  • Run the bundle.js output file in the dist folder.

🛠️ Contributions

If you think you can improve Music Bot, please submit a pull request that has well written and efficient code. Slow and poorly written code will be rejected or asked to be re-written properly.

🤝 Support

Submit an issue here in the repository, or join the Infinium Community (My own bot which Music Bot has been based off): https://discord.gg/QFvCUDydvV

🌟 Credits

  • eritislami/evobot for their amazing music system which I adapted with some personal changes.

musicbot's People

Contributors

dependabot[bot] avatar nikosszzz avatar

Stargazers

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

Watchers

 avatar

musicbot's Issues

Audio Not Found

Hi, I'm just curious, I just the bot, works fine, Youtube works, but no spotify songs play, keeps giving me No audio found, and when I look back at the console I see no error so not too sure what the problem is

SoundCloud Client Id no longer available.

Is your feature request related to a problem? Please describe.
It is cause i cannot request a client id from soundcloud sense they are no longer processing API application requests sense 2016 which sucks.

Describe the solution you'd like
To make it where i don't have to put any SoundCloud Client Id like in Evobot for example.

Describe alternatives you've considered
Don't have one sadly except going back to Evobot.

[Question] Does your bot support reactions?

Hey there, i saw that your bot's music system was made using source from eritislami/evobot. By anychance does your bot include reactions like evobot by anychance and does it also support playlist as well?

Getting a few errors

Hi, I'm getting a lot of errors trying to get the bot to work. Is there different steps to setting this up from evobot?
2023-03-03 (2)

Bot stops working after error

Bot stops and disconnects from channel after error.

Here is the error.

[STARTUP] Music Bot is initializing...
[MANAGER] All modules have been loaded.
[STARTUP] Music Bot is online.
[SLASHCMDS] Successfully registered 22 commands on Discord.
DiscordAPIError[10062]: Unknown interaction
at SequentialHandler.runRequest (/usr/src/app/node_modules/@discordjs/rest/s rc/lib/handlers/SequentialHandler.ts:497:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (/usr/src/app/node_modules/@discordj s/rest/src/lib/handlers/SequentialHandler.ts:198:11)
at async REST.request (/usr/src/app/node_modules/@discordjs/rest/src/lib/RES T.ts:343:20)
at async ChatInputCommandInteraction.reply (/usr/src/app/node_modules/discor d.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Object.execute (/usr/src/app/commands/music/play.ts:49:9)
at async Client. (/usr/src/app/manager/modules/commands.ts:14:13) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: { message: 'Unknown interaction', code: 10062 },
code: 10062,
status: 404,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1133132559086268557/aW50ZXJhY3R pb246MTEzMzEzMjU1OTA4NjI2ODU1NzpSTnNDelR6WGlVUWpIczZSa2pBdnhldzNJRlVJRlhoaWNCUW9 TNlB6Ym5nNFVBbTVFSm1PMlpJMUlCTkNjbkt0Y2IwOElHTlRtaU5pWFNKaXVoUGExQjduM2NxemRwRTh lTGY0Rno0c3JMZjNFWVR2MlpyWFhpTFpjQlhUWE53dA/callback'
}
/usr/src/app/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts: 497
throw new DiscordAPIError(data, 'code' in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[40060]: Interaction has already been acknowledged.
at SequentialHandler.runRequest (/usr/src/app/node_modules/@discordjs/rest/s rc/lib/handlers/SequentialHandler.ts:497:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.queueRequest (/usr/src/app/node_modules/@discordj s/rest/src/lib/handlers/SequentialHandler.ts:198:11)
at async REST.request (/usr/src/app/node_modules/@discordjs/rest/src/lib/RES T.ts:343:20)
at async ChatInputCommandInteraction.reply (/usr/src/app/node_modules/discor d.js/src/structures/interfaces/InteractionResponses.js:111:5)
at async Client. (/usr/src/app/manager/modules/commands.ts:17:13) {
requestBody: { files: [], json: { type: 4, data: [Object] } },
rawError: {
message: 'Interaction has already been acknowledged.',
code: 40060
},
code: 40060,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/interactions/1133132559086268557/aW50ZXJhY3R pb246MTEzMzEzMjU1OTA4NjI2ODU1NzpSTnNDelR6WGlVUWpIczZSa2pBdnhldzNJRlVJRlhoaWNCUW9 TNlB6Ym5nNFVBbTVFSm1PMlpJMUlCTkNjbkt0Y2IwOElHTlRtaU5pWFNKaXVoUGExQjduM2NxemRwRTh lTGY0Rno0c3JMZjNFWVR2MlpyWFhpTFpjQlhUWE53dA/callback'

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.