安装
小于 1 分钟
安装
该管理面板依赖云崽机器人框架运行,如果你还没有安装此应用,请查看以下教程进行安装:
https://yunzai-org.github.io/docs/
安装插件
插件提供了以下两种安装方式,请根据你的yunzai版本选择适合的安装方式:
- 使用npm模块(Yunzai-next):
- 下载依赖
yarn add yunzai-micro-plugin -W
- 如下示例写入配置文件
// yunzai.config.js
import { defineConfig } from 'yunzai'
import micro from 'yunzai-micro-plugin'
export default defineConfig({
// 应用
applications: [micro()],
// 中间件
middlewares: []
})
- 使用git(yunzai各版本通用):
- 克隆源码
git clone --depth=1 https://github.com/V2233/micro-plugin.git ./plugins/micro-plugin
或者使用gitee镜像
git clone --depth=1 https://gitee.com/V2233/micro-plugin.git ./plugins/micro-plugin
- 安装依赖
pnpm i --filter ./plugins/micro-plugin
- 重启Yunzai
pnpm run restart