Giter Club home page Giter Club logo

wavemusic's Introduction

Version Contributors Forks Stargazers Issues MIT License


moebot

WaveMusic

WaveMusic is a powerful music Bot

Report Bug & Request Feature

๐Ÿ”ฅ Unique Features

  • Developed Discord.js v14
  • Advanced Music System
  • Customizable Prefix
  • Powerful Search Engine
  • 12 + Music Filters
  • Hybrid Command Handling (Slash and Normal Commands)
  • Highly Configurable
  • User-friendly and Easy to Use
  • 24/7 Music Playback
  • Playlist commands
  • Setup music channel

๐ŸŽถ Support Sources

๐Ÿ” Default Sources:

  • YouTube
  • SoundCloud
  • Twitch
  • Bandcamp
  • Vimeo
  • http

๐Ÿ”Œ Plugin Sources: (Require: LavaLink v4.0.x)

Note: You need to install the plugins to use these sources

To set up a Lavalink server on Windows, Linux, or Replit, Click Here.

Need Help with plugins? Join our Discord Server and ask for help in the #support channel.

๐Ÿ”ง Requirements

Before starting with the installation, you need to have the following:

๐Ÿš€ Installation from source

  1. Clone the WaveMusic repository:
git clone https://github.com/brblacky/WaveMusic.git
  1. change the directory to WaveMusic
cd WaveMusic
  1. Install the required packages:
npm i
  1. Set up your environment variables:

Create a .env file in the root directory of your project with the following variables:

TOKEN="." # Your bot token
PREFIX= "!" # Your prefix
OWNER_IDS=["959276033683628122","859640640640640640"] # Your discord id, you can add multiple ids
GUILD_ID= "859640640640640640" # Your server Id if you want to use the for single server
PRODUCTION="true" # true for production 
SEARCH_ENGINE= "ytsearch" # ytsearch, scsearch or ytmsearch
MAX_PLAYLIST_SIZE= "100" # Max playlist size
MAX_QUEUE_SIZE= "100" # Max queue size
BOT_STATUS= "online" # Your bot status
BOT_ACTIVITY= "Lavamusic" # Your bot activity
LAVALINK_URL="lavalink:2333" # Your lavalink url
LAVALINK_AUTH="youshallnotpass" # Your lavalink password
LAVALINK_NAME="Blacky" # Your lavalink name
LAVALINK_SECURE= "false" # true for secure lavalink
KEEP_ALIVE= "false" # true for keep alive in https://replit.com
LOG_CHANNEL_ID=""
BOT_ACTIVITY_TYPE=0 # Activity type is a number from 0 to 5 see more here https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types
  1. Run the bot:
npm start

๐Ÿ“ Configuration

  • Prefix: The prefix for the bot commands
  • Owner ID: The ID of the bot owner
  • Client ID: The ID of the bot client
  • Guild ID: The ID of the server where the bot will be used
  • Production: Set to true for production
  • Search Engine: The search engine to use for searching songs
  • Max Playlist Size: The maximum size of a playlist
  • Max Queue Size: The maximum size of the queue
  • Bot Status: The status of the bot
  • Bot Activity: The activity of the bot
  • Lavalink URL: The URL of the Lavalink server
  • Lavalink Auth: The password for the Lavalink server
  • Lavalink Name: The name of the Lavalink server
  • Lavalink Secure: Set to true for secure Lavalink
  • Bot Activity Type: The type of activity for the bot
  • Keep Alive: Set to true for keep alive for replit

WaveMusic is a discord music bot base in Shoukaku If you liked this repository, feel free to leave a star โญ to help promote !

๐Ÿ“œ Contributing

Thank you for your interest in contributing to Lavamusic! Here are some guidelines to follow when contributing:

  1. Fork the repository and create a new branch for your feature or bug fix.
  2. Write clean and concise code that follows the established coding style.
  3. Create detailed and thorough documentation for any new features or changes.
  4. Write and run tests for your code.
  5. Submit a pull request with your changes.

Your contribution will be reviewed by the project maintainers, and any necessary feedback or changes will be discussed with you. We appreciate your help in making Lavamusic better!

๐Ÿ” License

Distributed under the GPL-3.0 license. See LICENSE for more information.

โ˜• Donate

Do you like this project? Support it by donating

ko-fi paypal

๐Ÿ‘ฅ Contributors

Thanks goes to these wonderful people :

wavemusic's People

Contributors

akabhijit avatar appujet avatar ballavanarayan avatar dependabot[bot] avatar diwasatreya avatar jantizio avatar jasonmidul avatar lucasb25 avatar venom9718 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  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

wavemusic's Issues

Prisma

[16.12.2023] [20:15:14] [interactionCreate.js] [Wavemusic] ยป โœ– error PrismaClientKnownRequestError:
Invalid this.client.prisma.guild.findUnique() invocation in
C:\Users\thews\Downloads\WaveMusic-main\src\commands\info\Help.js:39:54

36 }
37 async run(client, ctx, args) {
38 const embed = this.client.embed();
โ†’ 39 let prefix = (await this.client.prisma.guild.findUnique(
Raw query failed. Code: unknown. Message: Kind: Command failed: Error code 8000 (AtlasError): empty database name not allowed at 0bde02f4548c36d068f33f3218b82677/atlasproxy/session_proxy.go:696 at 0bde02f4548c36d068f33f3218b82677/atlasproxy/session_proxy.go:1594 at 0bde02f4548c36d068f33f3218b82677/atlasproxy/session_proxy.go:1175 at 10gen/[email protected]/proxy_session.go:364 at 10gen/[email protected]/proxy_session.go:117 at 10gen/[email protected]/session.go:217 at 10gen/[email protected]/server.go:401 at src/runtime/asm_arm64.s:1172, labels: {}
at Ig.handleRequestError (C:\Users\thews\Downloads\WaveMusic-main\node_modules@prisma\client\runtime\binary.js:182:6819)
at Ig.handleAndLogRequestError (C:\Users\thews\Downloads\WaveMusic-main\node_modules@prisma\client\runtime\binary.js:182:6207)
at Ig.request (C:\Users\thews\Downloads\WaveMusic-main\node_modules@prisma\client\runtime\binary.js:182:5927)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async a (C:\Users\thews\Downloads\WaveMusic-main\node_modules@prisma\client\runtime\binary.js:187:9983)
at async Help.run (C:\Users\thews\Downloads\WaveMusic-main\src\commands\info\Help.js:39:23)
at async InteractionCreate.run (C:\Users\thews\Downloads\WaveMusic-main\src\events\Client\interactionCreate.js:156:17)

spotify link error

TypeError: Cannot read properties of null (reading 'request')
at kazagumoSearch.getSpotifyTrack (/home/container/node_modules/kazagumo/src/kazagumoSearch.js:83:53)
at kazagumoSearch.spotifyURIHandler (/home/container/node_modules/kazagumo/src/kazagumoSearch.js:73:46)
at kazagumoSearch.search (/home/container/node_modules/kazagumo/src/kazagumoSearch.js:40:55)
at kazagumoPlayer.search (/home/container/node_modules/kazagumo/src/kazagumoPlayer.js:161:74)
at Object.execute (/home/container/src/commands/Music/play.js:54:33)
at processTicksAndRejections (node:internal/process/task_queues:96:5) Promise {
TypeError: Cannot read properties of null (reading 'request')
at kazagumoSearch.getSpotifyTrack (/home/container/node_modules/kazagumo/src/kazagumoSearch.js:83:53)
at kazagumoSearch.spotifyURIHandler (/home/container/node_modules/kazagumo/src/kazagumoSearch.js:73:46)
at kazagumoSearch.search (/home/container/node_modules/kazagumo/src/kazagumoSearch.js:40:55)
at kazagumoPlayer.search (/home/container/node_modules/kazagumo/src/kazagumoPlayer.js:161:74)
at Object.execute (/home/container/src/commands/Music/play.js:54:33)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
}

Error

Error in stop.js

in this line player.repeat = 'off';

Console Error

When i turn on autoplay and use leave cmd, it give me a error in this line
Capture

Bot Can't send message

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
+play <url/name of music>

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
mai 08 13:43:26 eden-fr.eu node[3430110]: TypeError: Cannot read properties of undefined (reading 'send')
mai 08 13:43:26 eden-fr.eu node[3430110]: at trackStartEventHandler (/opt/botInternal/BotMUSIC1/src/utils/functions.js:147:37)
mai 08 13:43:26 eden-fr.eu node[3430110]: at Object.run (/opt/botInternal/BotMUSIC1/src/events/Players/playerStart.js:33:11)
mai 08 13:43:26 eden-fr.eu node[3430110]: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Lag

this code is too much lagy

Skip Befehl

Error: Server responded with 404
at /home/container/node_modules/canvas/lib/image.js:59:28
at /home/container/node_modules/canvas/node_modules/simple-get/index.js:97:7
at IncomingMessage. (/home/container/node_modules/simple-concat/index.js:8:13)
at Object.onceWrapper (node:events:631:28)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1368:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
}

Bug report

I tested autoplay why if i do skip it won't skip
bot no playing songs on stage channels (bot join the channel but it won't play anyting user need to manul invite the speake) fix this

Play issus

Error: The voice connection is not established in 15 seconds
at Connection.connect (/home/container/node_modules/shoukaku/dist/index.js:369:15)
at async Node.joinChannel (/home/container/node_modules/shoukaku/dist/index.js:1093:7)
Error: The voice connection is not established in 15 seconds
at Connection.connect (/home/container/node_modules/shoukaku/dist/index.js:369:15)
at async Node.joinChannel (/home/container/node_modules/shoukaku/dist/index.js:1093:7)
Error: The voice connection is not established in 15 seconds
at Connection.connect (/home/container/node_modules/shoukaku/dist/index.js:369:15)
at async Node.joinChannel (/home/container/node_modules/shoukaku/dist/index.js:1093:7)

Autoplay

Please add autoplay cmd bro <3

Enhancing WaveMusic Discord Bot: User Feedback and Feature Suggestions

The default volume of the BOT is set to 100%. For some Discord newcomers, the volume can be too loud and uncomfortable when they join a voice channel. However, they usually don't change the volume of the BOT user immediately. I would like to request the addition of a parameter command that would allow me to modify the default volume in the documentation.

By the way, regarding some ongoing operational errors (BUGs), there are instances when the BOT doesn't clear messages in the text channels. This results in the accumulation of numerous and cluttered messages in the text channels.

Oh, one more thing! The interactive buttons provided by the author are indeed very useful. Currently, there are: (Decrease Volume), (Previous Song), (Pause), (Next Song), (Increase Volume), a total of 5 buttons. I hope there could be more added, such as: (Repeat Playback), (Shuffle Playback), (Request BOT to display the current playlist)...

If these could be implemented, it would be truly perfect!!

Remove command

remove command. when I remove the 1st track another song got removed to
example: ">remove 1" songs number 2, 3, 4, etc also deleted

wavamusic-test.-.Discord.2022-06-18.21-17-16.mp4

bot leaves voice channel

Describe the bug
A clear and concise description of what the bug is.

When i use /volume command and when i put in a value the bot pauses and leaves the voice channel.

Error

When i use the queue cmd it work but when click on buttons
it appear
Capture

MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"

MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
    at new ConnectionString (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongodb-connection-string-url\lib\index.js:86:19)
    at parseOptions (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongodb\lib\connection_string.js:217:17)
    at new MongoClient (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongodb\lib\mongo_client.js:62:63)
    at C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\connection.js:784:16
    at new Promise (<anonymous>)
    at NativeConnection.Connection.openUri (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\connection.js:781:19)
    at C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\index.js:340:10
    at C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5
    at new Promise (<anonymous>)
    at promiseOrCallback (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10) Promise {
  <rejected> MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
      at new ConnectionString (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongodb-connection-string-url\lib\index.js:86:19)
      at parseOptions (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongodb\lib\connection_string.js:217:17)
      at new MongoClient (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongodb\lib\mongo_client.js:62:63)
      at C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\connection.js:784:16
      at new Promise (<anonymous>)
      at NativeConnection.Connection.openUri (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\connection.js:781:19)
      at C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\index.js:340:10
      at C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\helpers\promiseOrCallback.js:32:5
      at new Promise (<anonymous>)
      at promiseOrCallback (C:\Users\Nopparat\Desktop\Nop\WaveMusic-main\node_modules\mongoose\lib\helpers\promiseOrCallback.js:31:10)

Djs update

I think you should update it to djs 14 because it's 13 and it will get expire very soon.

Fork

Please when i lunch the bot on replit it give me error Error: Cannot find module 'discord.js'
when i install discord.js manually it give me error please provide fork link in replit

reload bug

TypeError: client.owner.find is not a function
at Object.run (C:\Users\ะฒะฐัั\Desktop\Code\keni-main\src\events\Client\messageCreate.js:101:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5) Promise {
TypeError: client.owner.find is not a function
at Object.run (C:\Users\ะฒะฐัั\Desktop\Code\test\src\events\Client\messageCreate.js:101:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
}

please fix the bug

TypeError: Cannot read properties of undefined (reading 'joinChannel')
while using vc command

more features

Please update wavemusic and add all commands like [ 247, autoconnect, etc ] like lavamusic

Very strange bug

Describe the bug
When i try to play a song the bot responds with An unexcepted error occured. , and in the consle this pops up

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Play music :)

Screenshots
image

Desktop (please complete the following information):

  • OS:win 11 [e.g. iOS]
  • Browser: brave [e.g. chrome, safari]
  • Version: I don't know [e.g. 22]

Change the Wrapper

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Lyrics

Add lyrics command pls

Integrity check fails for @prisma/client@https://registry.npmjs.org/@prisma/client/-/client-5.6.0.tgz

Describe the bug
Whenever I run npm i it gives me the following error:

npm WARN tarball tarball data for @prisma/client@https://registry.npmjs.org/@prisma/client/-/client-5.6.0.tgz (sha512-2xsPaz4EaMKj1WS9iW6MlPhmbqtBsXAOeVttSePp8vTFTtvzh2hZbDgswwBdSCgPzmmwF+tLB259QzggvCmJqA==) seems to be corrupted. Trying again.
npm ERR! code EINTEGRITY
npm ERR! sha512-2xsPaz4EaMKj1WS9iW6MlPhmbqtBsXAOeVttSePp8vTFTtvzh2hZbDgswwBdSCgPzmmwF+tLB259QzggvCmJqA== integrity checksum failed when using sha512: wanted sha512-2xsPaz4EaMKj1WS9iW6MlPhmbqtBsXAOeVttSePp8vTFTtvzh2hZbDgswwBdSCgPzmmwF+tLB259QzggvCmJqA== but got sha512-mUDefQFa1wWqk4+JhKPYq8BdVoFk9NFMBXUI8jAkBfQTtgx8WPx02U2HB/XbAz3GSUJpeJOKJQtNvaAIDs6sug==. (1342659 bytes)

To Reproduce
Steps to reproduce the behavior:

  1. Go into ./WavMusic/
  2. run npm i

Desktop (please complete the following information):

  • OS: Raspian Bookworm

skip slash command

reject Promise {
AbortError: The user aborted a request.
at abort (/home/container/node_modules/node-fetch/lib/index.js:1462:16)
at EventTarget.abortAndFinalize (/home/container/node_modules/node-fetch/lib/index.js:1477:4)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:757:20)
at EventTarget.dispatchEvent (node:internal/event_target:692:26)
at abortSignal (node:internal/abort_controller:369:10)
at AbortController.abort (node:internal/abort_controller:403:5)
at Timeout. (/home/container/node_modules/discord.js/src/rest/APIRequest.js:72:49)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
type: 'aborted'
}
} FetchError: request to https://discord.com/api/v9/channels/1147599023277084815/messages/1147599025730748507 failed, reason: socket hang up
at ClientRequest. (/home/container/node_modules/node-fetch/lib/index.js:1505:11)
at ClientRequest.emit (node:events:529:35)
at TLSSocket.socketCloseListener (node:_http_client:474:11)
at TLSSocket.emit (node:events:529:35)
at node:net:350:12
at TCP.done (node:_tls_wrap:614:7) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET'
}
(node:128) [DEP0160] DeprecationWarning: The multipleResolves event has been deprecated.
HTTPError [AbortError]: The user aborted a request.
at RequestHandler.execute (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:201:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async MessageManager.edit (/home/container/node_modules/discord.js/src/managers/MessageManager.js:132:15)
at async Object.run (/home/container/events/Players/playerDestroy.js:47:9) {
code: 500,
method: 'patch',
path: '/channels/1147599023277084815/messages/1147599025730748507',
requestData: {
json: {
content: 'Join a voice channel and queue songs by name/url\n\n',
tts: false,
nonce: undefined,
embeds: [Array],
components: [Array],
username: undefined,
avatar_url: undefined,
allowed_mentions: [Object],
flags: 0,
message_reference: undefined,
attachments: [Array],
sticker_ids: undefined,
thread_name: undefined
},
files: [ [Object] ]
}

idle event listener

Can you give the bot a default feature of leaving by itself in N minutes when left alone or on empty queue? Much love

Discord.js

pls Update The Code To Discord.js V14

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.