How to add the !song command to the chat bot

You have to use the spotify API, and setup an auth to generate a token, and setup a refresh of the token. The tokens have a very short life span… an hour or something.

https://developer.spotify.com/documentation/general/guides/authorization-guide/

May also want to peek at the endpoint: Web API Reference | Spotify for Developers