diff --git a/commands/play.js b/commands/play.js index 0004cbe..41366cd 100644 --- a/commands/play.js +++ b/commands/play.js @@ -3,13 +3,14 @@ const { v4: uuidv4 } = require('uuid'); const path = require('path'); const { EmbedBuilder } = require('discord.js'); const fs = require('fs'); -const fetch = require('node-fetch'); + const { exec } = require('child_process'); module.exports = { name: 'play', description: 'Play a song from YouTube, a URL, or an uploaded MP3 file', async execute(message, args) { + const fetch = await import('node-fetch').then(module => module.default); const searchQuery = args.join(' '); const voiceChannel = message.member.voice.channel; diff --git a/package.json b/package.json index c85bcbd..9a5f912 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,8 @@ "dependencies": { "@discordjs/voice": "^0.17.0", "discord.js": "^14.15.3", - "ffmpeg-static": "^5.2.0", "libsodium-wrappers": "^0.7.15", - "opusscript": "^0.0.8", - "prism-media": "^1.3.5", - "uuid": "^10.0.0", - "yt-dlp-exec": "^1.0.2", - "ytdl-core": "^4.11.5" + "node-fetch": "^3.3.2", + "uuid": "^10.0.0" } }