juanhaywood / SCUMmunityBot

Open-source bot for the SCUM Community
9 stars 2 forks source link

Delivery Client Handler Requires Queuing System #11

Open juanhaywood opened 3 years ago

juanhaywood commented 3 years ago

Currently, the bot works fine if there is one order received and handled at a time. However, things go pear-shaped when more than one is received and processed concurrently. Mostly this is due to SCUM's chat anti-spam protection, blocking the admin/bot from sending too many consecutive messages. A queing system should resolve this.

juanhaywood commented 3 years ago

The Delivery Client Handler currently uses a Join node to merge the Discord Send node's output with the main flow for this action. Unfortunately there are some issues when multiple messages arrive very close together, breaking the current queue system. I've logged a feature request for the Discord send node with the node's contrib developer here: Markoudstaal/node-red-contrib-discord-advanced#5

Once this is in place, it should fix the issue.