PGamerX-Legacy / muser

Muser: A powerful Discord music bot made in DJs v13 managed by PGamerX, Peiprjs, and Luckie.
https://muser.pgamerx.com
GNU Affero General Public License v3.0
63 stars 12 forks source link

Improve Response Headers #26

Closed sachin-sankar closed 2 years ago

sachin-sankar commented 3 years ago

Currently there is nothing useful sent with the response in the headers instead on each response the API should return the requests-remaining with the remaining request quota for that api key.

izxxr commented 3 years ago

...And on ratelimits, It should return try-again-in with the time we can try again.

sachin-sankar commented 3 years ago

...And on ratelimits, It should return try-again-in with the time we can try again.

Also the time should be epoch seconds for compatibility.

izxxr commented 3 years ago

...And on ratelimits, It should return try-again-in with the time we can try again.

Also the time should be epoch seconds for compatibility.

Indeed! 👍🏻

pgamerx commented 3 years ago

Won't work on anything right now, sorry My first aim is to make the code transparent. I am hiding all the imp stuff which can lead to data leak. Then i will open source the api