diff --git a/index.js b/index.js index 7f7d3f2..ee16b5c 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ function checkLastSong({ name, channelName }) { } function writeLastSong({ name, channelName }) { - writeFileSync(path.join(__dirname, "last_song.txt"), `${name} - ${channelName}`, 'utf8'); + writeFileSync(path.join(__dirname, "last_song.txt"), `${name} - ${channelName}`, { recursive: true, encoding: 'utf-8' }); return null; }