Music Bot components extracted from harunon.js
This package has 2 parts, the underlying mechanics and the part that consume it.
You likely only want to import complete Music Cog which is compatible to cocoa-discord
See Example at tests/bot.js
Apart from that, if you can understand the code src/voice.ts, you can directly interact with api underneath, all of them is public.
-
Clone this repository, build the package and run tests/bot.js
-
Adjust and add some codes to personalize the bot
- Import music module to existing bot that use Cocoa Discord (See cminusminus for minimal example or Waifu Bot for sized bot)
-
node 18 (16 gone eol 💀)
-
IMPORTANT Encoding Libraries (This library does not ship these encoding libraries, so you can freely decide which one to install)
-
play from YouTube
-
queue
-
pause / resume
-
Loop
-
Remove from Queue and Clear
-
Search with beautiful embeds
- ✨ Search Feature
Note: Picture from previous release, lazy to update
-
This module has its cog named "Music", be sure to not creating a duplicate name
-
Some edge cases like user invoke command without being in voice channel might not be handled yet