AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

机器人的管理权限shell

Open darkness-UI opened this issue 6 months ago • 6 comments

怎么给机器人设置成管理员权限呀?

darkness-UI avatar Jun 01 '26 12:06 darkness-UI

Hi @darkness-UI! I'm Dosu and I'm helping the AstrBotTeam team.

设置管理员权限的步骤如下:

1. 获取你的用户 ID

在聊天平台中发送 /sid 命令获取你的 UID [1]。

2. 添加管理员

有两种方式:

  • WebUI(推荐):进入 设置 → 平台配置 → 管理管理员,添加你的 UID 并保存 [2]
  • 配置文件:编辑 data/cmd_config.json,将用户 ID 添加到 admins_id 数组中 [3]
"admins_id": ["astrbot", "450752262"]

⚠️ 注意:管理员 ID 必须是字符串(带引号),不能是数字,否则权限检查会失败 [1]。

3. 重启 AstrBot

保存后需要重启才能生效 [4]。


关于 Shell 权限:默认情况下 computer_use_require_admin 为 true,只有管理员才能使用 Shell、Python 执行和文件操作等 Computer Use 工具 [5]。成为管理员后即可正常使用这些功能。

To reply, just mention @dosu.


Docs are dead. Just use Dosu.

Leave Feedback Ask Dosu about AstrBot Share Dosu with your team

dosubot[bot] avatar Jun 01 '26 12:06 dosubot[bot]

我本人设置成管理员我知道,但是怎么给机器人设置成管理员呀?

darkness-UI avatar Jun 01 '26 12:06 darkness-UI

没能理解你的需求。 有相关的场景例子吗?

这个管理员是哪里的管理员?

Dt8333 avatar Jun 02 '26 06:06 Dt8333

以管理员权限运行终端就行了吧

Yangyuwuhan avatar Jun 03 '26 05:06 Yangyuwuhan

您好,感谢您对 AstrBot 项目的关注。

经过审查,该 Issue 不符合我们的提交规范,将被关闭。

该 Issue 存在以下问题之一或多项:

  • 正文内容过于简略或空泛,缺乏足够的技术细节供维护者评估
  • 内容为提问、求助或讨论,而非明确的 Bug 报告或功能建议
  • 标题仅有 [Bug]/[Feature] 标签,缺少实际的标题描述
  • 正文仅包含外部链接,无内联内容
  • 属于插件发布通知、安全报告等非标准 Issue 类型

请您按照 Issue 模板 重新提交一份规范的报告:

  • Bug 请使用「🐛 报告 Bug」模板,填写完整的问题描述、复现步骤、版本信息、环境信息和错误日志
  • 功能建议请使用「🎉 功能建议」模板,填写功能描述、使用场景和检查清单
  • 安全漏洞请通过项目的安全报告渠道提交,而非公开 Issue

我们会及时处理您重新提交的规范报告。


Hello, thank you for your interest in the AstrBot project.

After review, this Issue does not comply with our submission guidelines and will be closed.

This Issue has one or more of the following problems:

  • The body is too brief or vague, lacking sufficient technical details for maintainers to evaluate
  • The content is a question, help request, or discussion rather than a clear Bug report or feature suggestion
  • The title contains only a [Bug]/[Feature] label with no actual description
  • The body contains only external links with no inline content
  • The Issue type is non-standard (plugin announcement, security report, etc.)

Please resubmit a properly formatted report following the Issue template:

  • For bugs, use the "Bug Report" template with complete problem description, reproduction steps, version info, environment details, and error logs
  • For feature suggestions, use the "Feature Request" template with feature description, use case, and checklist
  • For security vulnerabilities, please use the project's security reporting channel instead of public Issues

We will address your resubmitted report promptly.

anka-afk avatar Oct 14 '26 10:10 anka-afk

您好,感谢您对 AstrBot 项目的关注。

经过审查,该 Issue 不符合我们的提交规范,将被关闭。

该 Issue 存在以下问题之一或多项:

  • 正文内容过于简略或空泛,缺乏足够的技术细节供维护者评估
  • 内容为提问、求助或讨论,而非明确的 Bug 报告或功能建议
  • 标题仅有 [Bug]/[Feature] 标签,缺少实际的标题描述
  • 正文仅包含外部链接,无内联内容
  • 属于插件发布通知等非标准 Issue 类型

请您按照 Issue 模板 重新提交一份规范的报告。提问和讨论建议移至 Discussions。


Hello, thank you for your interest in the AstrBot project.

After review, this Issue does not comply with our submission guidelines and will be closed.

This Issue has one or more of the following problems:

  • The body is too brief or vague, lacking sufficient technical details
  • The content is a question, help request, or discussion rather than a clear Bug report or feature suggestion
  • The title contains only a [Bug]/[Feature] label with no actual description
  • The body contains only external links with no inline content
  • The Issue type is non-standard (plugin announcement, etc.)

Please resubmit following the Issue template. For questions and discussions, please use Discussions instead.

anka-afk avatar Oct 14 '26 10:10 anka-afk