How to add the !song command to the chat bot

I have no idea where you are trying to run this, but the API works just fine. Check your chatbot documentation or the API-sites documentation on how to add it.