Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit 7cf4381

Browse files
author
astrbot-docs-agent[bot]
committed
docs: update for AstrBotDevs/AstrBot#5386
1 parent 7f682f5 commit 7cf4381

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

en/dev/star/guides/storage.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,18 @@ from astrbot.core.utils.astrbot_path import get_astrbot_data_path
2929

3030
plugin_data_path = get_astrbot_data_path() / "plugin_data" / self.name # self.name is the plugin name; available in v4.9.2 and above. For lower versions, specify the plugin name yourself.
3131
```
32+
33+
## AstrBot Data Directory Structure
34+
35+
AstrBot's data directory (`data/`) contains the following important subdirectories:
36+
37+
| Directory | Description |
38+
|-----------|-------------|
39+
| `data/attachments/` | Unified attachment storage for images, audio, files, etc. from WebChat and other platforms |
40+
| `data/plugin_data/` | Plugin data storage directory |
41+
| `data/config/` | Multi-configuration file storage (files starting with `abconf_`) |
42+
| `data/dist/` | Admin panel frontend files |
43+
| `data/webchat/imgs/` | (Deprecated) Legacy WebChat image directory; migrated to `attachments/` in newer versions |
44+
45+
> [!NOTE]
46+
> To access attachment files from WebChat and other platforms, use the `data/attachments/` directory. AstrBot automatically handles backward-compatible reading from both new and old locations.

en/faq.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ To modify your account credentials, follow these steps:
2929
> For security reasons, when runtime environment is set to `local`, AstrBot only allows AstrBot administrators to use computer capabilities by default.
3030
> You can select `sandbox` for the runtime environment, which allows all users to use computer capabilities (in an isolated sandbox). For more details, see [AstrBot Sandbox Environment](/en/use/astrbot-agent-sandbox.md)
3131
32+
### Where are WebChat attachments (images/files) stored?
33+
34+
WebChat attachments (images, audio, files) are stored in the unified `data/attachments/` directory.
35+
36+
> [!NOTE]
37+
> In earlier versions, WebChat attachments were stored in `data/webchat/imgs/`. Newer versions have migrated to the unified `data/attachments/` directory with backward compatibility for reading from the old location.
38+
3239
### Bot Cannot Chat in Group Conversations
3340

3441
1. In group chats, to prevent message flooding, the bot will not respond to every monitored message. Please try mentioning (@) the bot or using a wake word to chat, such as the default `/`, for example: `/hello`.

zh/dev/star/guides/storage.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,18 @@ from astrbot.core.utils.astrbot_path import get_astrbot_data_path
2929

3030
plugin_data_path = get_astrbot_data_path() / "plugin_data" / self.name # self.name 为插件名称,在 v4.9.2 及以上版本可用,低于此版本请自行指定插件名称
3131
```
32+
33+
## AstrBot 数据目录结构
34+
35+
AstrBot 的数据目录(`data/`)包含以下重要子目录:
36+
37+
| 目录 | 说明 |
38+
|------|------|
39+
| `data/attachments/` | 统一附件存储目录,存放 WebChat 等平台的图片、音频、文件等附件 |
40+
| `data/plugin_data/` | 插件数据存储目录 |
41+
| `data/config/` | 多配置文件存储目录(以 `abconf_` 开头) |
42+
| `data/dist/` | 管理面板前端文件 |
43+
| `data/webchat/imgs/` | (已废弃)旧版 WebChat 图片目录,新版本已迁移至 `attachments/` |
44+
45+
> [!NOTE]
46+
> 如需访问 WebChat 等平台的附件文件,请使用 `data/attachments/` 目录。AstrBot 会自动处理新旧目录的兼容读取。

zh/faq.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
- Windows: `C:\Users\你的用户名\.astrbot_launcher`
4747
- MacOS / Linux: `/Users/你的用户名/.astrbot_launcher` 或者 `/home/你的用户名/.astrbot_launcher`
4848

49+
### WebChat 聊天记录中的图片/文件存储在哪里?
50+
51+
WebChat 的附件(图片、音频、文件)统一存储在 `data/attachments/` 目录下。
52+
53+
> [!NOTE]
54+
> 在较早版本中,WebChat 附件存储在 `data/webchat/imgs/` 目录。新版本已迁移至统一的 `data/attachments/` 目录,并保持对旧目录的向后兼容读取。
55+
4956
### 机器人在群聊无法聊天
5057

5158
1. 群聊情况下,由于防止消息泛滥,不会对每条监听到的消息都回复,请尝试 @ 机器人或者使用唤醒词来聊天,比如默认的 `/`,输入 `/你好`

0 commit comments

Comments
 (0)