AutoMod does not initially return result of BotCommand
#24
Labels
No labels
Automated
Backlog
Post_Prototype_1.0
Bot_Code
Core
Bot_Code
Custom
CI/CD
Complexity
Advanced
Complexity
Basic
Complexity
Expert
Complexity
Intermediate
Kind/Breaking
Kind/Bug
Kind/Bug Fix
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Nix
Ownership
Collab
Ownership
Collab with Leads
Ownership
Individual Lead
Ownership
In-Review
Ownership
Needs Owner > May Delegate
Ownership
Workshop with Leads
Phase 1.0
Requirements > Drafting
Phase 1.0
Requirements > Researching
Phase 1.0
Requirements > Review & Planning
Phase 2.0
Design > Research & Analysis
Phase 3.0
Coding > Implementation
Phase 4.0
QA > Unit Testing & Design
Phase 5.0
Resolution > Completed
Phase 5.0
Resolution > Review for Completion
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
Depends on
#25 Enh RateLimiters with Async Sleep
modulatingforce/forcebot_rs
Reference: modulatingforce/forcebot_rs#24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At Auto-Mod trigger from a
BotCommand
, the bot throws two messages likely too quickly that chat only shows the Auto mod message. Expectation is maybe that we return both messages at once or (not ideally) queue the 2nd messageSteps to Reproduce (Problem) :
In a channel where the bot is running and the bot has no special roles, have a moderator run a
BotCommand
that requiresMod(Channel)
user role . For examplegetroles <user>
The bot responds, but only responds with the Auto-Mod message in chat (ISSUE)
getroles <user>
even if it was executed successfully . This is because twitch IRC rate limits the bot responseBotCommand
again, it returns the result of theBotCommand
without issues (Expected)Expectation :
At Step (2) , the bot should respond with a concatenation of both responses
Related Code areas
https://git.flake.sh/modulatingforce/forcebot_rs/src/branch/main/src/core/botinstance.rs#L301
https://git.flake.sh/modulatingforce/forcebot_rs/src/branch/main/src/core/identity.rs#L855
PR #25 addresses this issue through enhanced
RateLimiter
s that useasync sleep
to delay a message from being sentI'll keep this in monitoring for a few days before closing out
The mentioned PR fixed the issue