Bot doesn't stop playing
I'm trying to make a Music bot using spotify API but when i change the music the player doesn't stop and it plays the music after a while. The error is in the
if statement
but idk how to fix it :))
https://paste.learnspigot.com/ibefaduwod.js
this is the current code i have nowLearnSpigot: Send and save code snippets on our pastebin
LearnSpigot provides a free web-based pastebin service for storing and sharing code snippets with anyone. Powered by hastebin.
3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by stafffirst of all, spotify does not allow playback so i'm p sure whichever api you use just scrapes it off yt
oh, i didn't know that. I wanna support only spotify and souncloud because of the TOS
can you recommend me a good api that doesn't break TOS?
Ok I will. Thanks for your help but how can I fix this bug? then I will fix the TOS problem that I wasn't aware of
because if I don't solve this bug there's no point in continuing to implement things
damn