mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
song name fix?
This commit is contained in:
parent
1d0d365eed
commit
442522a91f
1 changed files with 2 additions and 0 deletions
|
@ -86,9 +86,11 @@ function inject (bot) {
|
||||||
switch (path.extname(fallbackName)) {
|
switch (path.extname(fallbackName)) {
|
||||||
case '.nbs':
|
case '.nbs':
|
||||||
song = convertNBS(buffer)
|
song = convertNBS(buffer)
|
||||||
|
if (song.name === '') song.name = fallbackName
|
||||||
break
|
break
|
||||||
case '.txt':
|
case '.txt':
|
||||||
song = parseTXTSong(buffer.toString())
|
song = parseTXTSong(buffer.toString())
|
||||||
|
song.name = fallbackName
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
// eslint-disable-next-line no-case-declarations
|
// eslint-disable-next-line no-case-declarations
|
||||||
|
|
Loading…
Reference in a new issue