Closed Doxylamin closed 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?
Added spotify integration using the Spotify WebAPI (v1).
Usage:
spotify <trackurl>
Track URL has to be in one of the following formats: