fix music commands not working and update deps

This commit is contained in:
Ayden Jahola 2025-10-14 03:45:27 +01:00
parent 68e3c27f92
commit f589178a72
No known key found for this signature in database
GPG key ID: 71DD90AE4AE92742
2 changed files with 17 additions and 11 deletions

View file

@ -9,7 +9,7 @@ const {
} = require("discord.js");
const { DisTube, isVoiceChannelEmpty } = require("distube");
const { SpotifyPlugin } = require("@distube/spotify");
const { YouTubePlugin } = require("@distube/youtube");
const { YtDlpPlugin } = require("@distube/yt-dlp");
const { SoundCloudPlugin } = require("@distube/soundcloud");
const mongoose = require("mongoose");
const fs = require("fs");
@ -87,7 +87,10 @@ client.commands = new Collection();
// Initialize DisTube
client.distube = new DisTube(client, {
plugins: [
new YouTubePlugin(), // YouTube takes priority
new YtDlpPlugin({
// Let the plugin download a bundled yt-dlp if needed.
update: true,
}),
new SpotifyPlugin(), // resolves Spotify → YouTube
new SoundCloudPlugin(), // resolves SoundCloud → YouTube
],
@ -152,7 +155,7 @@ async function registerCommands(guildId) {
}
}
client.once("ready", async () => {
client.once("clientReady", async () => {
printBanner();
console.log(

View file

@ -1,9 +1,9 @@
{
"name": "multipurpose-discord-bot",
"name": "circuitrix",
"version": "1.0.0",
"author": "Ayden Jahola",
"description": "A multipurpose discord bot",
"github": "https://github.com/aydenjahola/discord-multipurpose-bot",
"github": "https://github.com/aydenjahola/circuitrix",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
@ -12,14 +12,16 @@
"license": "MIT",
"dependencies": {
"@discordjs/opus": "^0.10.0",
"@discordjs/voice": "^0.19.0",
"@distube/soundcloud": "^2.0.4",
"@distube/spotify": "^2.0.2",
"@discordjs/voice": "0.19.0",
"@distube/soundcloud": "2.0.4",
"@distube/spotify": "2.0.2",
"@distube/youtube": "^1.0.4",
"@distube/yt-dlp": "2.0.1",
"@distube/ytdl-core": "4.16.12",
"@snazzah/davey": "^0.1.6",
"axios": "^1.7.7",
"discord.js": "^14.15.3",
"distube": "^5.0.7",
"discord.js": "14.23.2",
"distube": "5.0.7",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"ffmpeg-static": "^5.2.0",
@ -27,9 +29,10 @@
"html-entities": "^2.5.2",
"moment": "^2.30.1",
"mongoose": "^8.6.0",
"nodemailer": "^6.9.14",
"nodemailer": "^7.0.9",
"openai": "^4.85.4",
"owoify-js": "^2.0.0",
"prism-media": "1.3.5",
"puppeteer": "^23.4.1",
"rcon-client": "^4.2.5",
"uuid": "^11.0.0"