How kamcdev/jsoft_markbot_mjbcore works
Jsoft_markbot_mjbcore is a Python QQ bot framework using a OneBot 11 client, with dynamically loaded command plugins and a browser-based status panel. Its main workflow is: OneBot events arrive through the webhook service, message handling routes them to commands or registered interceptors, and handlers use the OneBot API wrapper to act in QQ. Configuration, account routing, logging, and background workers support that flow. The README documents plugin extensibility and the WebUI; unsampled subsystems are represented only where documented or referenced in the supplied source index.
Main entry points: message.py Event handling · mjbconfig.py Account configuration · mjbc.py Command dispatch · bot_v1_1.0.3.py Bot startup
Components 20
Runtime and events
- Bot startup
bot_v1_1.0.3.py - Webhook server
bin/socket.py - Event handling
bin/message.py - OneBot parser
bin/onebot_parse.py
Commands and plugins
- Command dispatch
bin/mjbc.py - Group welcome
modules/groupwelcome.py - Word filter
modules/filter.py - Command menus
bin/mjbmenu.py
Shared services
- Account configuration
bin/mjbconfig.py - Bot configuration files
config - Core settings
coreset.json - OneBot API wrapper
bin/send.py - Background workers
bin/worker.py - Logging
bin/logger.py - Bot utilities
bin/mjbutils.py
Web operations
- System status
bin/mjbstatus.py - WebUI server
bin/webmain.py - Web dashboard
webui/index.html
Other components
- Bot operator
- OneBot client
Connections 35
- Bot operator → Bot startup: starts bot
README.md - Bot startup → Webhook server: starts service
bot_v1_1.0.3.py - Bot startup → WebUI server: starts dashboard
bot_v1_1.0.3.py - OneBot client → Webhook server: posts events
README.md - Webhook server → Event handling: dispatches events
bin/socket.py - Event handling → OneBot parser: parses segments
bin/message.py - Event handling → Command dispatch: dispatches commands
bin/message.py - Bot startup → Command dispatch: loads plugins
bot_v1_1.0.3.py - Bot startup → Account configuration: loads settings
bot_v1_1.0.3.py - Bot startup → Background workers: manages workers
bot_v1_1.0.3.py - Event handling → Account configuration: reads settings
bin/message.py - Event handling → Background workers: starts polling
bin/message.py - Event handling → Logging: logs events
bin/message.py - Command dispatch → OneBot API wrapper: sends actions
bin/mjbc.py - Command dispatch → Account configuration: reads settings
bin/mjbc.py - Command dispatch → Command menus: uses menus
bin/mjbc.py - Command dispatch → System status: uses status
bin/mjbc.py - Command dispatch → Bot utilities: uses utilities
bin/mjbc.py - Group welcome → OneBot API wrapper: sends messages
modules/groupwelcome.py - Group welcome → Account configuration: reads settings
modules/groupwelcome.py - Group welcome → Background workers: starts checks
modules/groupwelcome.py - Group welcome → Event handling: uses message hooks
modules/groupwelcome.py - Word filter → Event handling: registers interceptor
modules/filter.py - Word filter → OneBot API wrapper: deletes messages
modules/filter.py - Word filter → Account configuration: reads settings
modules/filter.py - Word filter → Bot utilities: checks admins
modules/filter.py - Account configuration → Bot configuration files: loads account data
- Account configuration → Core settings: loads core settings
- OneBot API wrapper → OneBot client: calls HTTP API
bin/send.py - OneBot API wrapper → Account configuration: resolves account
bin/send.py - WebUI server → System status: reports status
bin/webmain.py - WebUI server → Event handling: reads heartbeat
bin/webmain.py - WebUI server → Account configuration: reads settings
bin/webmain.py - WebUI server → Background workers: reads threads
bin/webmain.py - Bot operator → Web dashboard: opens dashboard
README.md