Unfixed downloading into subfolders
This commit is contained in:
parent
4bec944e11
commit
2dcfa1cfac
@ -59,7 +59,7 @@ module.exports = [
|
|||||||
'-f',
|
'-f',
|
||||||
'best',
|
'best',
|
||||||
'-o',
|
'-o',
|
||||||
`${dir}/music/'${metadata.title}.mp3'`,
|
`${dir}/music/${metadata.title}.mp3`,
|
||||||
'--extract-audio',
|
'--extract-audio',
|
||||||
'--audio-format',
|
'--audio-format',
|
||||||
'mp3'
|
'mp3'
|
||||||
@ -75,7 +75,7 @@ module.exports = [
|
|||||||
players[ctx.guild.id] = player
|
players[ctx.guild.id] = player
|
||||||
|
|
||||||
// Loading music
|
// Loading music
|
||||||
const resource = createAudioResource(`${dir}/music/'${metadata.title}.mp3'`)
|
const resource = createAudioResource(`${dir}/music/${metadata.title}.mp3`)
|
||||||
|
|
||||||
// Playing the music with the player
|
// Playing the music with the player
|
||||||
player.play(resource)
|
player.play(resource)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user