Update play.js and package.json
This commit is contained in:
parent
25fa65e171
commit
db60021e08
|
@ -3,13 +3,14 @@ const { v4: uuidv4 } = require('uuid');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { EmbedBuilder } = require('discord.js');
|
const { EmbedBuilder } = require('discord.js');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const fetch = require('node-fetch');
|
|
||||||
const { exec } = require('child_process');
|
const { exec } = require('child_process');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'play',
|
name: 'play',
|
||||||
description: 'Play a song from YouTube, a URL, or an uploaded MP3 file',
|
description: 'Play a song from YouTube, a URL, or an uploaded MP3 file',
|
||||||
async execute(message, args) {
|
async execute(message, args) {
|
||||||
|
const fetch = await import('node-fetch').then(module => module.default);
|
||||||
const searchQuery = args.join(' ');
|
const searchQuery = args.join(' ');
|
||||||
const voiceChannel = message.member.voice.channel;
|
const voiceChannel = message.member.voice.channel;
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/voice": "^0.17.0",
|
"@discordjs/voice": "^0.17.0",
|
||||||
"discord.js": "^14.15.3",
|
"discord.js": "^14.15.3",
|
||||||
"ffmpeg-static": "^5.2.0",
|
|
||||||
"libsodium-wrappers": "^0.7.15",
|
"libsodium-wrappers": "^0.7.15",
|
||||||
"opusscript": "^0.0.8",
|
"node-fetch": "^3.3.2",
|
||||||
"prism-media": "^1.3.5",
|
"uuid": "^10.0.0"
|
||||||
"uuid": "^10.0.0",
|
|
||||||
"yt-dlp-exec": "^1.0.2",
|
|
||||||
"ytdl-core": "^4.11.5"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue