From e8fa654bcb8a1b191e1c1ce5853c9f0cb529c11d Mon Sep 17 00:00:00 2001 From: liam4 Date: Tue, 30 May 2017 17:07:20 +0000 Subject: Remove files after playing again --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index b8b33f1..f7604f8 100644 --- a/play.js +++ b/play.js @@ -170,8 +170,8 @@ async function loopPlay(fn) { while (wavFile) { const nextPromise = downloadNext() - console.log(wavFile) await playFile(wavFile) + await fsp.unlink(wavFile) wavFile = await nextPromise } } -- cgit 1.3.0-6-gf8a5