From 442522a91fc31ab7d0ee3688d9280f6879196a5c Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Sat, 31 Dec 2022 15:49:56 +0700 Subject: [PATCH] song name fix? --- plugins/music.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/music.js b/plugins/music.js index 19fd8af..355d3f2 100644 --- a/plugins/music.js +++ b/plugins/music.js @@ -86,9 +86,11 @@ function inject (bot) { switch (path.extname(fallbackName)) { case '.nbs': song = convertNBS(buffer) + if (song.name === '') song.name = fallbackName break case '.txt': song = parseTXTSong(buffer.toString()) + song.name = fallbackName break default: // eslint-disable-next-line no-case-declarations