Skip to content

Commit a7ba29c

Browse files
authored
Merge branch 'FloatTech:master' into master
2 parents 519908e + 43b45ce commit a7ba29c

File tree

118 files changed

+4556
-1953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+4556
-1953
lines changed

.github/workflows/nightly-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push]
44
jobs:
55
docker-builder:
66
name: build docker
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-23.04
88
steps:
99
- name: Check out code into the Go module directory
1010
uses: actions/checkout@master

.github/workflows/pull.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
with:
3434
ref: ${{ github.event.pull_request.head.sha }}
3535

36+
- name: Tidy Modules
37+
run: go mod tidy
38+
3639
- name: golangci-lint
3740
uses: golangci/golangci-lint-action@master
3841
with:

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- name: Check out code into the Go module directory
1414
uses: actions/checkout@master
1515

16+
- name: Tidy Modules
17+
run: go mod tidy
18+
1619
- name: Run Lint
1720
uses: golangci/golangci-lint-action@master
1821
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Run GoReleaser
2222
uses: goreleaser/goreleaser-action@master
2323
with:
24-
version: latest
24+
version: "~> v2"
2525
args: release --clean
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ linters:
2020
#- depguard
2121
- dogsled
2222
- errcheck
23-
- exportloopref
23+
#- exportloopref
2424
- exhaustive
2525
#- funlen
2626
#- goconst

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ archives:
6262
name_template: "zbp_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
6363
format_overrides:
6464
- goos: windows
65-
format: zip
65+
formats: zip
6666

6767
nfpms:
6868
- license: AGPL 3.0

README.md

Lines changed: 122 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
[![go](https://goreportcard.com/badge/github.com/FloatTech/ZeroBot-Plugin?style=flat-square&logo=go)](https://goreportcard.com/badge/github.com/FloatTech/ZeroBot-Plugin)
2222
[![onebot](https://img.shields.io/badge/onebot-v11-black?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==)](https://t.me/zerobotplugin)
23-
[![zerobot](https://img.shields.io/badge/zerobot-v1.7.4-black?style=flat-square&logo=go)](https://github.com/wdvxdr1123/ZeroBot)
23+
[![zerobot](https://img.shields.io/badge/zerobot-v1.8.0-black?style=flat-square&logo=go)](https://github.com/wdvxdr1123/ZeroBot)
2424

2525

2626

@@ -43,8 +43,6 @@
4343

4444
> 专为[后 go-cqhttp 时代](https://github.com/Mrs4s/go-cqhttp/issues/2471)开发迁移的`类zbp`新机器人现已出炉,基于官方api,稳定不风控: [NanoBot-Plugin](https://github.com/FloatTech/NanoBot-Plugin)
4545
46-
> 如果您不知道什么是 [OneBot](https://github.com/howmanybots/onebot) 或不希望运行多个程序,还可以直接前往 [gocqzbp](https://github.com/FloatTech/gocqzbp)[Release](https://github.com/FloatTech/gocqzbp/releases) 页面下载单一可执行文件或前往 [Packages](https://github.com/FloatTech/gocqzbp/pkgs/container/gocqzbp) 页面使用`docker`,运行后按提示登录即可。
47-
4846
> 如果您对开发插件感兴趣,欢迎加入[ZeroBot-Plugin-Playground](https://github.com/FloatTech/ZeroBot-Plugin-Playground)
4947
5048
> webui持续开发中, 欢迎加入[ZeroBot-Plugin-Webui](https://github.com/FloatTech/ZeroBot-Plugin-Webui)
@@ -402,6 +400,18 @@ print("run[CQ:image,file="+j["img"]+"]")
402400

403401
- [x] 支付宝到账 1
404402

403+
</details>
404+
<details>
405+
<summary>AnimeTrace 动画/Galgame识别</summary>
406+
407+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/animetrace"`
408+
409+
基于[AnimeTrace](https://ai.animedb.cn/)API 的识图搜索插件
410+
411+
- [x] Gal识图 | Gal识图 [模型名]
412+
413+
- [x] 动漫识图 | 动漫识图 2 | 动漫识图 [模型名]
414+
405415
</details>
406416
<details>
407417
<summary>触发者撤回时也自动撤回</summary>
@@ -669,6 +679,16 @@ print("run[CQ:image,file="+j["img"]+"]")
669679

670680
- [x] [emoji][emoji]
671681

682+
</details>
683+
<details>
684+
<summary>颜文字抽象转写</summary>
685+
686+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/emozi"`
687+
688+
- [x] 抽象转写[文段]
689+
- [x] 抽象还原[文段]
690+
- [x] 抽象登录[用户名]
691+
672692
</details>
673693
<details>
674694
<summary>好友申请及群聊邀请事件处理</summary>
@@ -943,12 +963,26 @@ print("run[CQ:image,file="+j["img"]+"]")
943963

944964
</details>
945965
<details>
946-
<summary>日韩 VITS 模型拟声</summary>
966+
<summary>Minecraft服务器监控&订阅</summary>
967+
968+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/minecraftobserver"`
947969

948-
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/moegoe"`
970+
- [x] mc服务器状态 [服务器IP/URI]
971+
- [x] mc服务器添加订阅 [服务器IP/URI]
972+
- [x] mc服务器取消订阅 [服务器IP/URI]
973+
- [x] mc服务器订阅拉取 (需要插件定时任务配合使用,全局只需要设置一个)
974+
- 使用job插件设置定时, 对话例子如下::
975+
- 记录在"@every 1m"触发的指令
976+
- (机器人回答:您的下一条指令将被记录,在@@every 1m时触发)
977+
- mc服务器订阅拉取
978+
</details>
979+
<details>
980+
<summary>Movies猫眼电影查询</summary>
949981

950-
- [x] 让[派蒙|空|荧|阿贝多|枫原万叶|温迪|八重神子|纳西妲|钟离|诺艾尔|凝光|托马|北斗|莫娜|荒泷一斗|提纳里|芭芭拉|艾尔海森|雷电将军|赛诺|琴|班尼特|五郎|神里绫华|迪希雅|夜兰|辛焱|安柏|宵宫|云堇|妮露|烟绯|鹿野院平藏|凯亚|达达利亚|迪卢克|可莉|早柚|香菱|重云|刻晴|久岐忍|珊瑚宫心海|迪奥娜|戴因斯雷布|魈|神里绫人|丽莎|优菈|凯瑟琳|雷泽|菲谢尔|九条裟罗|甘雨|行秋|胡桃|迪娜泽黛|柯莱|申鹤|砂糖|萍姥姥|奥兹|罗莎莉亚|式大将|哲平|坎蒂丝|托克|留云借风真君|昆钧|塞琉斯|多莉|大肉丸|莱依拉|散兵|拉赫曼|杜拉夫|阿守|玛乔丽|纳比尔|海芭夏|九条镰治|阿娜耶|阿晃|阿扎尔|七七|博士|白术|埃洛伊|大慈树王|女士|丽塔|失落迷迭|缭乱星棘|伊甸|伏特加女孩|狂热蓝调|莉莉娅|萝莎莉娅|八重樱|八重霞|卡莲|第六夜想曲|卡萝尔|姬子|极地战刃|布洛妮娅|次生银翼|理之律者|迷城骇兔|希儿|魇夜星渊|黑希儿|帕朵菲莉丝|天元骑英|幽兰黛尔|德丽莎|月下初拥|朔夜观星|暮光骑士|明日香|李素裳|格蕾修|梅比乌斯|渡鸦|人之律者|爱莉希雅|爱衣|天穹游侠|琪亚娜|空之律者|薪炎之律者|云墨丹心|符华|识之律者|维尔薇|芽衣|雷之律者|阿波尼亚]说(中文)
982+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/movies"`
951983

984+
- [x] 今日电影
985+
- [x] 预售电影
952986
</details>
953987
<details>
954988
<summary>摸鱼</summary>
@@ -1011,22 +1045,6 @@ print("run[CQ:image,file="+j["img"]+"]")
10111045

10121046
- 注:刷新文件夹较慢,请耐心等待刷新完成,会提示“成功”。
10131047

1014-
</details>
1015-
<details>
1016-
<summary>抽wife</summary>
1017-
1018-
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/nativewife"`
1019-
1020-
- [x] 抽wife[@xxx]
1021-
1022-
- [x] 添加wife[名字][图片]
1023-
1024-
- [x] 删除wife[名字]
1025-
1026-
- [x] [让 | 不让]所有人均可添加wife
1027-
1028-
- 注:不同群添加后不会重叠
1029-
10301048
</details>
10311049
<details>
10321050
<summary>拼音首字母释义工具</summary>
@@ -1045,6 +1063,40 @@ print("run[CQ:image,file="+j["img"]+"]")
10451063

10461064
- [x] 搜索日语语法 [xxx]
10471065

1066+
</details>
1067+
<details>
1068+
<summary>牛牛大作战</summary>
1069+
1070+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/niuniu" `
1071+
1072+
- [x] 打胶
1073+
1074+
- [x] 使用[道具名称]打胶
1075+
1076+
- [x] jj[@xxx]
1077+
1078+
- [x] 使用[道具名称]jj[@xxx]
1079+
1080+
- [x] 赎牛牛
1081+
1082+
- [x] 牛牛拍卖行
1083+
1084+
- [x] 出售牛牛
1085+
1086+
- [x] 牛牛商店
1087+
1088+
- [x] 牛牛背包
1089+
1090+
- [x] 注册牛牛
1091+
1092+
- [x] 注销牛牛
1093+
1094+
- [x] 牛子长度排行
1095+
1096+
- [x] 牛子深度排行
1097+
1098+
- [x] 查看我的牛牛
1099+
10481100
</details>
10491101
<details>
10501102
<summary>小说</summary>
@@ -1069,6 +1121,22 @@ print("run[CQ:image,file="+j["img"]+"]")
10691121

10701122
- [x] 当图片属于非 neutral 类别时自动发送评价(默认禁用,启用输入 /启用 nsfwauto)
10711123

1124+
</details>
1125+
<details>
1126+
<summary>抽wife</summary>
1127+
1128+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/nwife"`
1129+
1130+
- [x] 抽wife[@xxx]
1131+
1132+
- [x] 添加wife[名字][图片]
1133+
1134+
- [x] 删除wife[名字]
1135+
1136+
- [x] [让 | 不让]所有人均可添加wife
1137+
1138+
- 注:不同群添加后不会重叠
1139+
10721140
</details>
10731141
<details>
10741142
<summary>浅草寺求签</summary>
@@ -1281,14 +1349,6 @@ print("run[CQ:image,file="+j["img"]+"]")
12811349

12821350
- [x] >TL 你好
12831351
1284-
</details>
1285-
<details>
1286-
<summary>vits猫雷</summary>
1287-
1288-
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/vitsnyaru"`
1289-
1290-
- [x] 让猫雷说[xxxx]
1291-
12921352
</details>
12931353
<details>
12941354
<summary>vtb语录</summary>
@@ -1307,10 +1367,18 @@ print("run[CQ:image,file="+j["img"]+"]")
13071367

13081368
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/wallet"`
13091369

1310-
- [x] 查看我的钱包
1311-
13121370
- [x] 查看钱包排名
13131371

1372+
- [x] 设置硬币名称[ATRI币]
1373+
1374+
- [x] 管理钱包余额[+金额|-金额][@xxx]
1375+
1376+
- [x] 查看我的钱包|查看钱包余额[@xxx]
1377+
1378+
- [x] 钱包转账[金额][@xxx]
1379+
1380+
- 注:仅超级用户能"管理钱包余额",
1381+
13141382
</details>
13151383
<details>
13161384
<summary>据意查句</summary>
@@ -1504,29 +1572,38 @@ print("run[CQ:image,file="+j["img"]+"]")
15041572
### *低优先级*
15051573

15061574
<details>
1507-
<summary>骂人</summary>
1575+
<summary>OpenAI聊天</summary>
15081576

1509-
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/curse"`
1577+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/aichat"`
15101578

1511-
- [x] 骂我
1512-
1513-
- [x] 大力骂我
1579+
- [x] 设置AI聊天触发概率10
1580+
- [x] 设置AI聊天温度80
1581+
- [x] 设置AI聊天接口类型[OpenAI|OLLaMA|GenAI]
1582+
- [x] 设置AI聊天(不)支持系统提示词
1583+
- [x] 设置AI聊天接口地址https://xxx
1584+
- [x] 设置AI聊天密钥xxx
1585+
- [x] 设置AI聊天模型名xxx
1586+
- [x] 查看AI聊天系统提示词
1587+
- [x] 重置AI聊天系统提示词
1588+
- [x] 设置AI聊天系统提示词xxx
1589+
- [x] 设置AI聊天分隔符`</think>`(留空则清除)
1590+
- [x] 设置AI聊天(不)响应AT
1591+
- [x] 设置AI聊天最大长度4096
1592+
- [x] 设置AI聊天TopP 0.9
15141593

15151594
</details>
15161595
<details>
1517-
<summary>人工智能回复</summary>
1518-
1519-
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/aireply"`
1596+
<summary>骂人</summary>
15201597

1521-
- [x] @Bot 任意文本(任意一句话回复)
1598+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/curse"`
15221599

1523-
- [x] 设置文字回复模式[婧枫|沫沫|青云客|小爱|ChatGPT]
1600+
- [x] 骂我
15241601

1525-
- [x] 设置 ChatGPT api key xxx
1602+
- [x] 大力骂我
15261603

15271604
</details>
15281605
<details>
1529-
<summary>词典匹配回复</summary>
1606+
<summary>词典匹配回复, 仅@触发</summary>
15301607

15311608
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/thesaurus"`
15321609

@@ -1547,8 +1624,7 @@ print("run[CQ:image,file="+j["img"]+"]")
15471624

15481625
### 1. 使用稳定版/测试版 (推荐)
15491626

1550-
可以前往[Release](https://github.com/FloatTech/ZeroBot-Plugin/releases)页面下载对应系统版本可执行文件,编译时开启了全部插件。您还可以选择 [gocqzbp](https://github.com/FloatTech/gocqzbp)[Release](https://github.com/FloatTech/gocqzbp/releases)[Package](https://github.com/FloatTech/gocqzbp/pkgs/container/gocqzbp),它是 [Mrs4s/go-cqhttp](https://github.com/Mrs4s/go-cqhttp) 与本插件的合体。
1551-
1627+
可以前往[Release](https://github.com/FloatTech/ZeroBot-Plugin/releases)页面下载对应系统版本可执行文件,编译时开启了全部插件。
15521628
### 2. 本地直接运行
15531629

15541630
1. 下载安装最新 [Go](https://studygolang.com/dl) 环境

custom/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
!.gitignore
2+
!doc.go
3+
!plugin
4+
*

custom/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package custom 注册用户自定义插件于此
2+
package custom

custom/plugin/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!.gitignore
2+
*

0 commit comments

Comments
 (0)