DEV Community

Discussion on: Writing a music command for your discord.js bot (Updated March 2020)

Collapse
 
anjayanimabar12 profile image
Hezza

Hello Nir, I got a problem at line 90 like these

const playlist = await youtube.getPlaylist(query); // get playlist data
^^^^^

SyntaxError: await is only valid in async function
pls react this pls...

Collapse
 
galnir profile image
Nir

It shouldn't happen unless you copied code over to another bot. If you want this to work perfectly, clone the master-bot repo and follow the instructions on the repo's page. Also this guide is outdated so it will not work well