[ENH] RateLimiters to address messages sending too quickly notice #19

Closed
opened 2024-03-03 16:51:15 -05:00 by modulatingforce · 2 comments

Enhance RateLimiters and current Bot Core to address the following

["Now=2024-03-03T16:32:04-0500&Pid=6848&Thr=ThreadId(7)&Seq=8"]
Notice = 'NOTICE : (#Some("modulatingforce")) Your message was not sent because you are sending messages too quickly.'
Channel = 'None'
Chatter = 'None'
Code_Module = 'Some("BotInstance > runner()")'

Steps to Reproduce :

  1. Setup the following :

    a. Bot join channel where it has no roles
    b. Adjust a Listener so it responds with Every command for yourself

  2. Spam chat yourself - for example, as broadcaster

  3. Notice the following NOTICE is thrown in logs


To address, I think we can enhance RateLimiter and Bot Core with the following :

  • Considers the bot's current channel role to determine rate policy
  • If posting the current message would be spammy, either SKIP the message or (?) async sleep for a time to allow the message not to be spammy

Not a priority at the moment while I'm doing controlled runs of the bot ; but a must-have when ran in spammy channels

Enhance `RateLimiters` and current Bot Core to address the following ``` ["Now=2024-03-03T16:32:04-0500&Pid=6848&Thr=ThreadId(7)&Seq=8"] Notice = 'NOTICE : (#Some("modulatingforce")) Your message was not sent because you are sending messages too quickly.' Channel = 'None' Chatter = 'None' Code_Module = 'Some("BotInstance > runner()")' ``` **Steps to Reproduce :** 1. Setup the following : a. Bot join channel where it has no roles b. Adjust a Listener so it responds with Every command for yourself 2. Spam chat yourself - for example, as broadcaster 3. Notice the following NOTICE is thrown in logs --- To address, I think we can enhance `RateLimiter` and Bot Core with the following : - Considers the bot's current channel role to determine rate policy - If posting the current message would be spammy, either SKIP the message or (?) async sleep for a time to allow the message not to be spammy --- Not a priority at the moment while I'm doing controlled runs of the bot ; but a must-have when ran in spammy channels
modulatingforce added this to the Prototype 1.0 milestone 2024-03-03 16:51:15 -05:00
modulatingforce added the
Priority
Low
label 2024-03-03 16:51:15 -05:00
modulatingforce added this to the Rust Learning project 2024-03-03 16:51:15 -05:00
Author
Owner

PR #25 may have helped address to remedy this

Will keep in monitoring for a few days

PR https://git.flake.sh/modulatingforce/forcebot_rs/pulls/25 may have helped address to remedy this Will keep in monitoring for a few days
modulatingforce added the due date 2024-03-22 2024-03-18 22:44:13 -04:00
modulatingforce added the
Kind/Enhancement
label 2024-03-19 11:31:25 -04:00
Author
Owner

Haven't noticed this issue in recent logs

Considering this resolved

Haven't noticed this issue in recent logs Considering this resolved
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

2024-03-22

Dependencies

No dependencies set.

Reference: modulatingforce/forcebot_rs#19
No description provided.