acmcsufoss / shorter

🔗 Discord slash command URL shortener.
Do What The F*ck You Want To Public License
2 stars 0 forks source link

Introduce timeout between invocations #4

Open EthanThatOneKid opened 1 year ago

EthanThatOneKid commented 1 year ago

Bug

Apparently, the bot currently faces an issue where it cannot handle multiple consecutive invocations effectively. In some cases, the most recent invocation tends to overwrite the previous ones.

Strategy

To address this problem, we propose implementing a "cool down" or timeout mechanism. This will allow the bot to work more smoothly by ensuring that it has sufficient time to create GitHub commits sequentially and maintain the desired behavior.

EthanThatOneKid commented 1 year ago

Note: A TTL duration is deemed invalid if it is shorter than the constant timeout.