WIP: Log loaded modules and actions #53
No reviewers
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#53
Loading…
Reference in a new issue
No description provided.
Delete branch "Log-modules-acts"
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?
Initial description
Smol enhancement. In
BotInstance
constructor methodinit()
, add logic that prints into the log theBotModules
andbotactions
that were successfully loadedAt the moment, this functionality was implemented in
main()
, and spits out line by line as it went through thebotactions
vectorFor this PR,
main()
moved to in theBotInstance::init()
ModulesManager
likeget_modules()
andget_botactions()
Thinking about delegating or showcasing
I wanted to flesh out the details a bit of this PR , but I think I'm intending to delegate this later
Just in case these are helpful for implementing
Related https://git.flake.sh/modulatingforce/forcebot_rs/src/branch/Log-modules-acts/src/main.rs#L28-L53
From
main()
that logs eachBotAction
, but one line at a timeHelpful
ModulesManager
methodsfn moduleslist(&self) -> HashMap<BotModule,ModGroup>
Arc::clone(&bot.botmodules.botactions)
above inmain()
, except withoutArc<RwLock<T>>
fn modstatus(&self, in_module: BotModule, in_chnl: Channel) -> StatusType
StatusType
of the Module . For example, Enabled/Disabled - refer to https://git.flake.sh/modulatingforce/forcebot_rs/src/branch/Log-modules-acts/src/core/botmodules.rs#L457I'll say this is relatively intermediate because the
Arc<RwLock<T>>
involved and unpackingNotohh is available this week-
5 am - 8pm or so
Sari -
After Wednesday
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.