# 先决条件

在安装机器人之前，请确保你的系统满足以下要求。

***

## Python

**需要 Python 3.10 或更新版本。** 建议使用 Python 3.11 或 3.12 以获得最佳性能。

检查你的版本：

```bash
python3 --version
```

如果你的版本低于 3.10，请在继续之前升级。大多数包管理器（apt、brew、winget）都提供了较新的 Python 版本。

***

## pip

pip 随 Python 一起提供。确认它可用：

```bash
pip3 --version
```

***

## git

你需要使用 git 来克隆仓库：

```bash
git --version
```

如果缺失，请通过系统的包管理器安装（`apt install git`, `brew install git`，等等）。

***

## 操作系统

该机器人运行于 **Linux、macOS 和 Windows**。生产环境部署建议使用 Linux。

***

## 网络访问

主机必须能够访问：

* `discord.com` — 用于 Discord API 和网关
* `supabase.co` — 仅当你使用 Auttaja 集成时需要

***

## 可选：进程管理器

对于长时间运行的生产部署，建议使用进程管理器，以便在崩溃或重启时自动重启机器人：

* **Linux：** `systemd` 或 `pm2`
* **Windows：** NSSM 或任务计划程序
* **任何平台：** `pm2` （基于 Node，可通过 Python 使用 `--interpreter python3`)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vigila.augystudios.com/zh/zi-tuo-guan/prerequisites.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
