How kyanowo1107/astrbot_plugin_codex_radar_info works
Codex Radar Info is a read-only AstrBot plugin for querying daily model metrics, community ratings, radar summaries, and site extras, then returning reports and images in QQ merged-forward messages. A command handler coordinates the fetches and image generation; the client parses remote data into domain models, while formatters prepare report sections. Browser automation captures the efficiency chart and exports the distributed report. The README documents these capabilities and remote sources; relationships for unsampled subsystems are limited to those documented there.
Main entry points: main.py Command handler · client.py Radar client · browser.py Image service · models.py Report models
Components 11
Command and delivery
- Command handler
main.py - QQ OneBot adapter
Radar data
- Radar client
codexradar_info/client.py - Codex Radar
- Distributed Radar
- Payload parsers
codexradar_info/parsers.py - Report models
codexradar_info/models.py
Report presentation
- Report formatters
codexradar_info/formatters.py
Image generation
- Image service
codexradar_info/browser.py - Cached images
codexradar_info/browser.py
Other components
- Requester
Connections 15
- Requester → Command handler: invokes command
main.py - Command handler → Radar client: fetches reports
main.py - Command handler → Image service: generates images
main.py - Command handler → Report formatters: formats sections
main.py - Command handler → QQ OneBot adapter: sends merged forward
main.py - QQ OneBot adapter → Requester: delivers report
README.md - Radar client → Codex Radar: requests public data
codexradar_info/client.py - Radar client → Payload parsers: parses responses
codexradar_info/client.py - Payload parsers → Report models: creates report models
codexradar_info/parsers.py - Radar client → Report models: returns typed reports
codexradar_info/client.py - Report formatters → Report models: formats report data
codexradar_info/formatters.py - Image service → Codex Radar: captures chart
codexradar_info/browser.py - Image service → Distributed Radar: exports report PNG
codexradar_info/browser.py - Image service → Cached images: reads and writes
README.md - Command handler → Cached images: attaches generated images
main.py