()
| 21 | |
| 22 | |
| 23 | def _get_data_path() -> Path: |
| 24 | base = get_astrbot_root() |
| 25 | if not check_astrbot_root(base): |
| 26 | raise click.ClickException( |
| 27 | f"{base} is not a valid AstrBot root directory. Use 'astrbot init' to initialize", |
| 28 | ) |
| 29 | return (base / "data").resolve() |
| 30 | |
| 31 | |
| 32 | def display_plugins(plugins, title=None, color=None) -> None: |