PitchforkAssistant / devvit-flair-assistant

Attempt at replacing Flair Helper with a Reddit Developer Platform based project.
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Add ability to delay action execution #8

Open PitchforkAssistant opened 8 months ago

PitchforkAssistant commented 8 months ago

Explore the idea of adding a config option that would let action execution be delayed using the Scheduler.

This would probably involve spinning out the flair action execution into a separate function, which would then either be called from the ModAction trigger or Scheduler.

Why? This would fix any race conditions with Toolbox removals, as currently the post flair may be set before Toolbox distinguishes its removal reason, thus making the bot think it needs to add a removal reason.