rayzrdev / SharpBot

A Discord.js selfbot written by Rayzr - 60 second installation!
https://git.io/sharpbot
MIT License
129 stars 134 forks source link

Spotify Integration #58

Closed Doxylamin closed 7 years ago

Doxylamin commented 7 years ago

Added spotify integration using the Spotify WebAPI (v1).

Usage: spotify <trackurl>

Track URL has to be in one of the following formats:

rayzr522 commented 7 years ago

This is actually a great idea for a command. The only problem I have here is that there's not much input verification, and there's absolutely NO output verification. You don't even try/catch JSON.parse.

I know there are several commands that don't have much output verification, but I'm extra worried about this because it seems like the kind of situation where the JSON data could vary greatly. I get worried when I see things like data['album']['images'][2]['url'].

@LucasPMagno @abyssvi any thoughts on this?