[ENH] Silence Mode #6
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
No due date set.
Dependencies
No dependencies set.
Reference: modulatingforce/forcebot_rs#6
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?
Design a working enhanced Silence Mode that Channel Moderators can toggle so that the bot doesn't respond in Chat
The solution should involve the following :
A flag or field or module that is accessible from bot instance that represents its state per channel . There can be optionally an Instance level Silence mode if a Bot Admin wants to quiet the bot as a whole
For any given Channel where Silence Mode is Enabled , any bot attempt to respond in Chat should by default not be sent if the Channel is in Silence Mode , regardless of
BotAction
There should be a coded option to force respond or say something in chat ; for example for some administrative command that would only run in an admin or bot channel (validated before calling the
BotAction
), we may want to force bot to say something despite enabled Silence ModeAllow
BotAction
to continue running regardless of Silence Mode :Listener
s andRoutine
s would still continue to run ; but would not respond in silence modeBotCommand
should continue to run . This is because Module Developers may want to control normal bot messages, but still guarantee that required chat messages will still be sentPretty easy to design and roll out - but there are other priorities at the moment, so started this to flesh out the idea and backlog into the current sprint
With the most current bot code on local, a Module Developer is recommended to call the Bot's version of chat related commands, as these have internal controls driving whether the chat message is sent and how the chat message is formatted
I think it might be better to have some Channel Modes and Channel Modes Manager that :
Takes any Mode (e.g., Silence Mode)
Allows Privileged UserRoles to run Channel Mode Commands to define the state of that mode
The modes can be based on existing enums from
botmodules
Like maybe
ModeStatusType
?Then I can have some Hashmap like the following
ModeManager
should have similar status related functions thatModulesManager
usesBelow is from
ModulesManager
at the moment that's related