diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-12-06 20:22:27 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-12-06 20:22:27 -0500 |
| commit | 85a535956f5b6fbb035dca090123ece7fa8be8b5 (patch) | |
| tree | 27d12f147be55c3741a130208799bb9442a4753c /backend/PlayAudio.js | |
| parent | f91f277a30a081cde95805bf39adeb835be98c3f (diff) | |
| download | DLAP-85a535956f5b6fbb035dca090123ece7fa8be8b5.tar.gz DLAP-85a535956f5b6fbb035dca090123ece7fa8be8b5.tar.bz2 DLAP-85a535956f5b6fbb035dca090123ece7fa8be8b5.zip | |
Used ChatGPT to fix certain problems; Removed more unnessesary stuff
Diffstat (limited to 'backend/PlayAudio.js')
| -rw-r--r-- | backend/PlayAudio.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/PlayAudio.js b/backend/PlayAudio.js index d698798..fea4b3d 100644 --- a/backend/PlayAudio.js +++ b/backend/PlayAudio.js @@ -62,7 +62,7 @@ export async function playAudio(bot) { } else { metadataEmpty = true; } - duration = new Date(format.duration * 1000).toISOString().substr(11, 8); + duration = new Date(format.duration * 1000).toISOString().slice(11, 19); } catch (e) { console.error(e); } |
