mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -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)) {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue