From 4b4335f6eb7dbd0d448d2673a7c80c2c396e5f35 Mon Sep 17 00:00:00 2001 From: Yiwen-Chan Date: Thu, 18 Mar 2021 19:27:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20=E6=9B=B4=E6=96=B0=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 ++++++++++++++++++++++++++----- build.bat | 7 +++++-- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3a039912..d100508a 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,18 @@ ZeroBot-Plugin + # ZeroBot-Plugin - ![Badge](https://img.shields.io/badge/OneBot-v11-black) -[![License](https://img.shields.io/github/license/Yiwen-Chan/GroupManagerBot.svg)](https://raw.githubusercontent.com/Yiwen-Chan/GroupManagerBot/master/LICENSE) -[![QQ 群](https://img.shields.io/badge/qq%E7%BE%A4-1048452984-green.svg)](https://jq.qq.com/?_wv=1027&k=QMb7x1mM) +[![License](https://img.shields.io/github/license/Yiwen-Chan/ZeroBot-Plugin.svg)](https://raw.githubusercontent.com/Yiwen-Chan/ZeroBot-Plugin/master/LICENSE) +[![反馈群](https://img.shields.io/badge/反馈群-1048452984-green.svg)](https://jq.qq.com/?_wv=1027&k=QMb7x1mM) -本项目符合 [OneBot](https://github.com/howmanybots/onebot) 标准,下面内容为旧版本移植,不确保是否有误 +### 功能 +- 群管 +- 涩图 +- 点歌 +- TODO... -可基于以下项目与机器人框架/平台进行交互 +本项目符合 [OneBot](https://github.com/howmanybots/onebot) 标准,可基于以下项目与机器人框架/平台进行交互 | 项目地址 | 平台 | 核心作者 | 备注 | | --- | --- | --- | --- | | [Yiwen-Chan/OneBot-YaYa](https://github.com/Yiwen-Chan/OneBot-YaYa) | [先驱](https://www.xianqubot.com/) | kanri | | @@ -16,3 +20,20 @@ | [Mrs4s/go-cqhttp](https://github.com/Mrs4s/go-cqhttp) | [MiraiGo](https://github.com/Mrs4s/MiraiGo) | Mrs4s | | | [yyuueexxiinngg/cqhttp-mirai](https://github.com/yyuueexxiinngg/cqhttp-mirai) | [Mirai](https://github.com/mamoe/mirai) | yyuueexxiinngg | | | [takayama-lily/onebot](https://github.com/takayama-lily/onebot) | [OICQ](https://github.com/takayama-lily/oicq) | takayama | | + +### 使用方法 +#### 本地编译 +1. 下载安装 [Go](https://studygolang.com/dl/golang/go1.16.2.windows-amd64.msi) 环境 +2. 下载安装 [TDM-GCC](https://github.com/jmeubank/tdm-gcc/releases),并添加到环境变量 +3. [clone](https://github.com/Yiwen-Chan/ZeroBot-Plugin/archive/master.zip) 本项目,本地解压 +4. 编辑 main.go 文件,内容按需修改 +5. 双击点击 build.bat 文件 +6. 运行框架,并同时运行本插件 + +#### 利用 Actions 编译 (推荐) +1. 点击右上角 Fork 本项目,并转跳到自己 Fork 的仓库 +2. 点击仓库上方的 Actions 按钮,确认使用 Actions +3. 编辑 main.go 文件,内容按需修改,返回仓库 +4. 点击 Actions 按钮,等待编译完成,在 Actions 里下载编译好的文件 +5. 运行框架,并同时运行本插件 + diff --git a/build.bat b/build.bat index 130042a2..4ea29e59 100644 --- a/build.bat +++ b/build.bat @@ -1,3 +1,6 @@ -SET CGO_ENABLED=1 -go build -ldflags="-s -w -extldflags '-static'" main.go +go version +gcc -v +go env -w GOPROXY=https://goproxy.cn,direct +go env -w GO111MODULE=auto +go build -ldflags="-s -w" -o ZeroBot-Plugin-windows.exe pause