automagically create file

This commit is contained in:
MeowcaTheoRange 2024-02-19 17:23:47 -06:00
parent 82a34afa14
commit 8a163139df

View file

@ -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;
}