Installation Detailed
Complete installation guide for ChatAI Plugin.
Prerequisites
| Dependency | Version | Check Command |
|---|---|---|
| Node.js | ≥ 18.0 | node -v |
| pnpm | ≥ 8.0 | pnpm -v |
| Yunzai-Bot | V3 | - |
| Build Tools | Latest | See below |
Step 1: Clone Repository
bash
cd Yunzai-Bot
git clone https://github.com/XxxXTeam/chatai-plugin.git ./plugins/chatai-pluginbash
cd Yunzai-Bot
git clone git@github.com:XxxXTeam/chatai-plugin.git ./plugins/chatai-pluginStep 2: Install Dependencies
bash
pnpm installStep 3: Build Native Module
bash
pnpm rebuild better-sqlite3Build Tools Required
Install build tools if rebuild fails:
bash
npm install -g windows-build-toolsbash
sudo apt install build-essential python3bash
xcode-select --installStep 4: Start
bash
pnpm startVerify Installation
Send to bot:
txt
#ai状态Success
If you see plugin version and status info, installation is complete!
Directory Structure
plugins/chatai-plugin/
├── apps/ # Yunzai plugin modules
├── config/ # Configuration
├── data/ # Runtime data
├── src/ # Source code
│ ├── core/ # Core layer
│ ├── mcp/ # MCP system
│ └── services/ # Service layer
├── frontend/ # Web panel source
└── resources/ # Static resourcesNext Steps
- Quick Start - Basic setup
- Basic Config - Configuration options
- Troubleshooting - Common issues