hashbat-dev / discgo-bot

3 stars 0 forks source link

Imgur requests return 429 too many requests on Live #106

Closed Chris-Kellett closed 1 month ago

Chris-Kellett commented 1 month ago

Imgur is showing "too many requests" in Live, I think this is because we'll be on a shared IP with others so I'm going to do this:

  1. Keep the Imgur stuff in, if the bot is INDEV then it'll use Imgur to provide the image.
  2. If the bot is LIVE, it will save the image to a Temp folder and provide this link instead of the Imgur one to the meme function.
  3. Once the function has completed, and the Interaction is complete we'll delete the file.

The issue with doing it this way before was that in Localhost we can't provide public access for it to work, though using Imgur will fix this.