mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-03-30 12:05:38 +00:00
- Updated `.gitignore` to include local configuration and plugin directories, allowing users to add custom commands and services without modifying core code. - Enhanced `config.ini.example` with instructions for using local plugins and added sections for local service configurations. - Refactored `PluginLoader` and `ServicePluginLoader` to support loading local commands and services from specified directories, improving extensibility. - Updated `mkdocs.yml` to include documentation for local plugins and the check-in API. - Added tests to verify the discovery and loading of local plugins, ensuring functionality and preventing name collisions with built-in plugins.
Local plugins and services
Place your own command plugins and service plugins here so they stay separate from bot-provided code.
- local/commands/ — Python files each defining a command (subclass of
BaseCommand). Loaded after built-in commands; duplicate names are skipped. - local/service_plugins/ — Python files each defining a background service (subclass of
BaseServicePlugin). Loaded after built-in services; duplicate names are skipped. - local/config.ini — Optional. Merged with main
config.ini; use it for sections and options for your local plugins and services.
See docs/local-plugins.md (or the "Local plugins and services" section in the docs) for how to write a minimal plugin and configure it.