automagically create file
This commit is contained in:
parent
82a34afa14
commit
8a163139df
1 changed files with 1 additions and 1 deletions
2
index.js
2
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue