Creating functional loop, pause and unpause

This commit is contained in:
Azaaxin
2023-06-25 04:00:21 +02:00
parent 35eb54ab8c
commit dddbe81fab
12 changed files with 106 additions and 74 deletions

View File

@@ -9,6 +9,7 @@ async function getMusicStream(query) {
let songTitle;
let songDuration;
let type = StreamType.Opus;
let userInput = query;
if (query.includes('spotify.com')) {
stream = await spotify.getStream(query);
@@ -34,6 +35,7 @@ async function getMusicStream(query) {
return {
title: songTitle,
duration: songDuration,
userInput: userInput,
stream: stream,
type: type
};