Low Threshold Plugin Development Guide
Layered solutions for developers of different skill levels:
Newbie Friendly Program
- template reuse: Use the officially provided
plugin_template.pybasic framework - Sample Learning: refer to the built-in
weather/calculatorPlugin Code Structure - Quick Test: Plug-ins are placed into the
data/pluginspost-implementationuv reloadhot loading
Advanced Development Techniques
- hook function: Fair Use
on_message/on_scheduleetc. event triggers - configuration separation: By
config.yamlEnabling parameter configurability - Dependency management: in
__init__.pyhit the nail on the headrequirementsAutomatically installing dependency packages
Debugging Tools1. Use the "Plugin Debugging" interface in the Admin Panel 2.logger.info()Output the run log 3. Interface with VSCode's Python debugger
Note: Complex operations are recommended to refer to the official documentation of theAPI ReferenceChapters (https://astrbot.app/dev/plugin.html)
This answer comes from the articleAstrBot: AI Chatbot Access Platform with WebUIThe





























