-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] MUSIC #42
Comments
Hi, whilst this is a good feature I do not believe that it is in scope for this project as it does not have much to do with AI. However, you can add your own music system. Here is some example code, this system using distube: Music SystemDependencies -
Files - |
Sorry... but how can I create a slash command with this?
Em sex., 14 de jun. de 2024 às 07:35, TechyGiraffe999 <
***@***.***> escreveu:
… Hi, whilst this is a good feature I do not believe that it is in scope for
this project as it does not have much to do with AI. However, you can add
your own music system.
Here is some example code, this system using distube
<https://github.com/skick1234/DisTube>:
Music System Dependencies -
npm install ytdl-core yt-search libsodium-wrappers ffmpeg-static distube
@distube/spotify @discordjs/opus
Files -
*index.js* - https://sourceb.in/n8Wb1Xhehq // Put this file in your
bot.js file
*music.js* - https://sourceb.in/LBwSCUbQAH // create a new folder called
music and then create a new file and name it music.js and put this code
inside
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXLBVLGXEJD7UGKPBQ2KLVDZHLBOHAVCNFSM6AAAAABJDOY26CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXG42DENRUHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The music.js file is the slash command... not sure what you mean |
this message appears
throw err;
^
Error: Cannot find module '../../index'
Require stack:
- C:\Users\Soares\Downloads\Taurus-4.5
(1)\Taurus-4.5\interactions\slash\misc\music.js
- C:\Users\Soares\Downloads\Taurus-4.5 (1)\Taurus-4.5\bot.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (C:\Users\Soares\Downloads\Taurus-4.5
(1)\Taurus-4.5\interactions\slash\misc\music.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Soares\\Downloads\\Taurus-4.5
(1)\\Taurus-4.5\\interactions\\slash\\misc\\music.js',
'C:\\Users\\Soares\\Downloads\\Taurus-4.5 (1)\\Taurus-4.5\\bot.js'
]
}
How can i fix this?
… Message ID: ***@***.***>
|
reroute it to the file where you put the index.js code that was provided. |
I did this, the bot is online but does not respond to the command "The
application did not respond"
Em sex., 14 de jun. de 2024 às 19:12, TechyGiraffe999 <
***@***.***> escreveu:
… reroute it to the file where you put the index.js code that was provided.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXLBVLE76OZHGPIKLIL44ALZHNTGVAVCNFSM6AAAAABJDOY26CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYHAZDONJRGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Honestly im not sure what to do... this isn't officially supported and I'm not sure how you have configure your bot exactly |
📂 What category is this feature in?
Information
📝 Description of Feature
I would like to suggest you add command to play music from all platforms like spotify youtube soundcloud etc
The text was updated successfully, but these errors were encountered: