Skip to content

[Bug]该数据存储位置是否异常? #6962

@jark006

Description

@jark006

What happened / 发生了什么

安装AstrBot,初始化过程发现应用数据的目录不太正常。
执行 astrbot init 后发现他在我的用户文件夹(C:\Users\JARK006)创建了.astrbot 文件data文件夹。
正常来说,应该是 .astrbot 文件夹,然后在.astrbot文件夹里再放data等等文件才对。

Image

部分日志:

Welcome to AstrBot CLI!
AstrBot CLI version: 4.22.1
Initializing AstrBot...
Install AstrBot to this directory? C:\Users\JARK006 [Y/n]: y
Created C:\Users\JARK006\.astrbot
Directory exists: C:\Users\JARK006\data
Directory exists: C:\Users\JARK006\data\config
Directory exists: C:\Users\JARK006\data\plugins
Directory exists: C:\Users\JARK006\data\temp
Dashboard is not installed
Install dashboard? [Y/n]:
Installing dashboard...

Reproduce / 如何复现?

uv tool install astrbot
astrbot init

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

4.22.1
uv tool install astrbot

OS

Windows

Logs / 报错日志

PS C:\Users\JARK006> uv tool install astrbot
Resolved 136 packages in 1m 26s
Built jieba==0.42.1
Built aiocqhttp==1.4.4
Prepared 112 packages in 4m 46s
Installed 136 packages in 2.75s

  • aiocqhttp==1.4.4

  • aiodocker==0.26.0
    ...

  • xlrd==2.0.2

  • xmltodict==1.0.4

  • yarl==1.23.0
    Installed 1 executable: astrbot
    PS C:\Users\JARK006> astrbot init

    ___ _... . ______ .___________.
    / \ / | || _ \ | _ \ / __ \ | |
    / ^ \ | (-------| |----| |
    ) | | |
    ) | | | | | ---| |----
    / /
    \ \ \ \ | | | / | _ < | | | | | |
    / _____ \ .----) | | | | |\ ----.| |
    ) | | --' | | | /__/ \__\ |_______/ |__| | _| .||
    / ____/ ||

Welcome to AstrBot CLI!
AstrBot CLI version: 4.22.1
Initializing AstrBot...
Install AstrBot to this directory? C:\Users\JARK006 [Y/n]: y
Created C:\Users\JARK006.astrbot
Directory exists: C:\Users\JARK006\data
Directory exists: C:\Users\JARK006\data\config
Directory exists: C:\Users\JARK006\data\plugins
Directory exists: C:\Users\JARK006\data\temp
Dashboard is not installed
Install dashboard? [Y/n]:
Installing dashboard...
...

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions