Update play.js and package.json

This commit is contained in:
Wizzard 2024-08-17 17:03:28 -04:00
parent 25fa65e171
commit db60021e08
2 changed files with 4 additions and 7 deletions

View File

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

View File

@ -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"
}
}