diff --git a/docker-compose.yml b/docker-compose.yml index fb5f575..5487163 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,8 @@ services: test: 'curl -H "Authorization: youshallnotpass" -s http://localhost:2333/version || exit 1' interval: 10s timeout: 10s - retries: 3 - start_period: 120s # Delay before starting checks + retries: 5 + start_period: 10s # Delay before starting checks ports: - "2333:2333" # Expose port for other containers or external access if needed diff --git a/lavalink/application.yml b/lavalink/application.yml index f053132..cb269ea 100644 --- a/lavalink/application.yml +++ b/lavalink/application.yml @@ -85,7 +85,7 @@ plugins: countryCode: "US" # the country code you want to use for searching lyrics via ISRC. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 lavalink: plugins: - - dependency: "dev.lavalink.youtube:youtube-plugin:1.7.2" # Youtube Source plugins + - dependency: "dev.lavalink.youtube:youtube-plugin:1.8.0" # Youtube Source plugins snapshot: false - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.2.0" # LavaSrc Plugins repository: "https://maven.lavalink.dev/releases" diff --git a/package.json b/package.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/package.json @@ -0,0 +1 @@ +{} diff --git a/src/commands/prefix/music/NowPlayPrefix.js b/src/commands/prefix/music/NowPlayPrefix.js index 055f1ef..35b361b 100644 --- a/src/commands/prefix/music/NowPlayPrefix.js +++ b/src/commands/prefix/music/NowPlayPrefix.js @@ -76,6 +76,7 @@ module.exports = { trackStream: song.isStream, trackDuration: player.position, trackTotalDuration: song.length, + fontPath: path.join(__dirname, "..", "..", "..", "fonts", "ArialUnicodeMS.ttf") }); const attachment = new AttachmentBuilder(cardImage, { name: "card.png", diff --git a/src/commands/slash/music/NowPlaySlash.js b/src/commands/slash/music/NowPlaySlash.js index 4ad9938..9a18b72 100644 --- a/src/commands/slash/music/NowPlaySlash.js +++ b/src/commands/slash/music/NowPlaySlash.js @@ -2,6 +2,7 @@ const SlashCommand = require("../../../structures/SlashCommand"); const path = require("path"); const { EmbedBuilder, AttachmentBuilder } = require("discord.js"); const { classicCard } = require("songcard"); +const path = require("path"); const command = new SlashCommand() .setName("nowplay") @@ -77,6 +78,7 @@ const command = new SlashCommand() trackStream: song.isStream, trackDuration: player.position, trackTotalDuration: song.length, + fontPath: path.join(__dirname, "..", "..", "..", "fonts", "ArialUnicodeMS.ttf") }); const attachment = new AttachmentBuilder(cardImage, { name: "card.png", diff --git a/src/events/audio/trackStart.js b/src/events/audio/trackStart.js index 60ff90c..a0d80e2 100644 --- a/src/events/audio/trackStart.js +++ b/src/events/audio/trackStart.js @@ -34,6 +34,7 @@ module.exports = async (client, player, track) => { songArtist: track.info.author, streamProvider: track.info.sourceName, trackRequester: username, + fontPath: path.join(__dirname, "..", "..", "fonts", "ArialUnicodeMS.ttf") }); const attachment = new AttachmentBuilder(trackPlayCanvas, { diff --git a/src/fonts/ArialUnicodeMS.ttf b/src/fonts/ArialUnicodeMS.ttf new file mode 100644 index 0000000..51a18bc Binary files /dev/null and b/src/fonts/ArialUnicodeMS.ttf differ diff --git a/src/package.json b/src/package.json index 4c566d9..67d9c5b 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "musicbot", - "version": "1.0.7", + "version": "1.1.0", "description": "Another javascript discord music bot.", "main": "index.js", "scripts": { @@ -26,15 +26,15 @@ }, "homepage": "https://github.com/LewdHuTao/MusicBot#readme", "dependencies": { - "@discordjs/builders": "^1.8.2", - "@discordjs/rest": "^2.3.0", + "@discordjs/builders": "^1.9.0", + "@discordjs/rest": "^2.4.0", "colors": "^1.4.0", - "discord.js": "^14.15.3", + "discord.js": "^14.16.2", "fs": "^0.0.1-security", "llyrics": "^1.1.7", "moment": "^2.30.1", "moment-duration-format": "^2.3.2", - "mongoose": "^8.5.4", + "mongoose": "^8.6.3", "ms": "^2.1.3", "niizuki": "^1.0.13", "node-cache": "^5.1.2", @@ -43,7 +43,7 @@ "pretty-bytes": "^6.1.1", "pretty-ms": "^9.1.0", "semver": "^7.6.3", - "songcard": "^1.3.1", + "songcard": "^1.4.1", "systeminformation": "^5.23.5", "util": "^0.12.5", "youtube-sr": "^4.3.11"