Halfbroken fixes
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
const playdl = require('play-dl');
|
||||
//TODO ADD SPOTIFY SUPPORT
|
||||
// TODO ADD SPOTIFY SUPPORT
|
||||
async function getStream(query) {
|
||||
const trackInfo = await playdl.spotify(query);
|
||||
const trackInfo = await playdl.spotify(query);
|
||||
|
||||
let searched = await play.search(`${trackInfo.name}`, {
|
||||
limit: 1
|
||||
})
|
||||
const searched = await play.search(`${trackInfo.name}`, {
|
||||
limit: 1,
|
||||
});
|
||||
|
||||
let stream = await play.stream(searched[0].url)
|
||||
return stream;
|
||||
const stream = await play.stream(searched[0].url);
|
||||
return stream;
|
||||
}
|
||||
|
||||
module.exports.getStream = getStream;
|
||||
Reference in New Issue
Block a user