e-a-h / That-Sky-Bot

That Sky [Bot] for thatgamecompany and #thatskygame
Creative Commons Attribution Share Alike 4.0 International
14 stars 3 forks source link

Music Cog: send POST request to sky-music.herokuapp.com #52

Closed jmmelko closed 4 years ago

jmmelko commented 4 years ago

If the player wishes, an external HTTP request with POST method and JSON as data should be sent to https://sky-music.herokuapp.com/api/generateTempSong

I don’t know if I can do that just by embedding an hyperlink in the message or if I should add a YES/NO reaction and trigger a python function to do that.

e-a-h commented 4 years ago

I think adding the link automatically would be nice. then there's no additional work for users, and I believe usage is low enough that it won't be a bottleneck

Specy commented 4 years ago

@jmmelko how would that reveal the API key?

e-a-h commented 4 years ago

in other words, use the API of sky-music app automatically when a song is generated, then show the resulting link, not the link to create the link

jmmelko commented 4 years ago

Done. Waiting for Alex to tell me how will be stored the API key.