Creating functional loop, pause and unpause
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user