Taurus icon indicating copy to clipboard operation
Taurus copied to clipboard

[FEATURE] MUSIC

Open tiosoaress opened this issue 1 year ago • 7 comments

📂 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

tiosoaress avatar Jun 11 '24 03:06 tiosoaress

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 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

TecEash1 avatar Jun 14 '24 10:06 TecEash1

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 https://github.com/TecEash1/Taurus/issues/42#issuecomment-2167742648, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXLBVLGXEJD7UGKPBQ2KLVDZHLBOHAVCNFSM6AAAAABJDOY26CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXG42DENRUHA . You are receiving this because you authored the thread.Message ID: @.***>

tiosoaress avatar Jun 14 '24 21:06 tiosoaress

The music.js file is the slash command... not sure what you mean

TecEash1 avatar Jun 14 '24 21:06 TecEash1

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. (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: @.***>

tiosoaress avatar Jun 14 '24 22:06 tiosoaress

reroute it to the file where you put the index.js code that was provided.

TecEash1 avatar Jun 14 '24 22:06 TecEash1

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 https://github.com/TecEash1/Taurus/issues/42#issuecomment-2168827513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXLBVLE76OZHGPIKLIL44ALZHNTGVAVCNFSM6AAAAABJDOY26CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYHAZDONJRGM . You are receiving this because you authored the thread.Message ID: @.***>

tiosoaress avatar Jun 14 '24 23:06 tiosoaress

Honestly im not sure what to do... this isn't officially supported and I'm not sure how you have configure your bot exactly

TecEash1 avatar Jun 15 '24 11:06 TecEash1