jakevoytko / crbot

A Discord bot that acts as a call-and-response bot. It reacts to ? commands with the learned response.
MIT License
7 stars 3 forks source link

Consider a retry policy for GET commands #52

Closed jakevoytko closed 1 year ago

jakevoytko commented 6 years ago

I've seen some reads flake, especially on startup:

Error retrieving channel from discord for command executor: HTTP 403 Forbidden, {"code": 50001, "message": "Missing Access"}

^ this happened for initial load executors, and it succeeded the next time I tried. My theory is that this is a race condition on the Discord side. Consider adding a retry policy for things like this, where the program can wait a small # of times for some small # of milliseconds (100?) before trying again.