Skip to content

Commit

Permalink
Merge branch 'FloatTech:master' into PR
Browse files Browse the repository at this point in the history
  • Loading branch information
vatebur committed May 6, 2024
2 parents 6cfef88 + 78c64ac commit 7c78dc8
Show file tree
Hide file tree
Showing 42 changed files with 302 additions and 2,820 deletions.
4 changes: 1 addition & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ run:
deadline: 5m
issues-exit-code: 1
tests: false
skip-dirs:
- order
go: '1.20'

# output configuration options
output:
format: "colored-line-number"
formats: ["colored-line-number"]
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
Expand Down
159 changes: 10 additions & 149 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div align="center">
<img src=".github/hua_nobg_512.gif" alt="" width = "400">
<img src=".github/hua_nobg_512.gif" alt="" width = "256">
<img src="https://github.com/FloatTech/ZeroBot-Plugin/assets/41315874/93fb795d-e519-45a6-a654-076fd6ac54ae" alt="zbp-uwu" width = "400">
<br>

<h1>ZeroBot-Plugin</h1>
Expand Down Expand Up @@ -29,11 +30,12 @@
[![telegram](https://img.shields.io/badge/Telegram-click%20me-informational?style=flat-square&logo=telegram)](https://t.me/zerobotplugin)

本项目符合 [OneBot](https://github.com/howmanybots/onebot) 标准,可基于以下项目与机器人框架/平台进行交互
| 项目地址 | 平台 | 核心作者 |
| --- | --- | --- |
| [go-cqhttp](https://github.com/Mrs4s/go-cqhttp) | [MiraiGo](https://github.com/Mrs4s/MiraiGo) | Mrs4s |
| [onebot-kotlin](https://github.com/yyuueexxiinngg/onebot-kotlin) | [Mirai](https://github.com/mamoe/mirai) | yyuueexxiinngg |
| [oicq/http-api](https://github.com/takayama-lily/oicq/tree/master/http-api) | [OICQ](https://github.com/takayama-lily/oicq) | takayama |
| 项目地址 | 平台 | 核心作者 | 备注 |
| :---: | :---: | :---: | :---: |
| [LLOneBot](https://github.com/LLOneBot/LLOneBot) | NTQQ | linyuchen | 目前推荐使用 |
| [go-cqhttp](https://github.com/Mrs4s/go-cqhttp) | [MiraiGo](https://github.com/Mrs4s/MiraiGo) | Mrs4s | 因签名原因不再维护 |
| [onebot-kotlin](https://github.com/yyuueexxiinngg/onebot-kotlin) | [Mirai](https://github.com/mamoe/mirai) | yyuueexxiinngg | 不再积极维护 |
| [oicq/http-api](https://github.com/takayama-lily/oicq/tree/master/http-api) | [OICQ](https://github.com/takayama-lily/oicq) | takayama | 已归档不再维护 |

[![Star Trend](https://api.star-history.com/svg?repos=FloatTech/ZeroBot-Plugin&type=Timeline)](https://seladb.github.io/StarTrack-js/#/preload?r=FloatTech,ZeroBot-Plugin)

Expand All @@ -50,7 +52,7 @@
## 命令行参数
> `[]`代表是可选参数
```bash
zerobot [-h] [-m] [-n nickname] [-t token] [-u url] [-g url] [-p prefix] [-d|w] [-c|s config.json] [-l latency] [-r ringlen] [-x max process time] [qq1 qq2 qq3 ...] [&]
zerobot [-h] [-m] [-n nickname] [-t token] [-u url] [-g url] [-p prefix] [-d|w] [-c|s config.json] [-l latency] [-r ringlen] [-x max process time] [-mirror] [qq1 qq2 qq3 ...] [&]
```
- **-h**: 显示帮助
- **-m**: 不自动标记消息为已读
Expand All @@ -65,6 +67,7 @@ zerobot [-h] [-m] [-n nickname] [-t token] [-u url] [-g url] [-p prefix] [-d|w]
- **-l latency**: 全局处理延时 (ms)
- **-r ringlen**: 接收消息环缓冲区大小,`0`为不设缓冲,并发处理
- **-x max process time**: 最大处理时间 (min)
- **-mirror**: 直接使用镜像懒加载数据站而不尝试访问源站
- **qqs**: superusers 的 qq 号
- **&**: 驻留在后台,必须放在最后,仅`Linux`下有效

Expand Down Expand Up @@ -373,30 +376,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 设置默认限速为每 m [分钟 | 秒] n 次触发

</details>
<details>
<summary>ai绘图</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/aipaint"`

- [x] [ ai绘图 | 生成色图 | 生成涩图 | ai画图 ] xxx

- [x] [ ai高级绘图 | 高级生成色图 | 高级生成涩图 | ai高级画图 ] xxx

- [x] [ 以图绘图 | 以图生图 | 以图画图 ] xxx [图片]|@xxx|[qq号]

- [x] 设置ai绘图配置 [server] [token]

- [x] 设置ai绘图撤回时间90s

- [x] 查看ai绘图配置

例: 设置ai绘图配置 http://91.216.169.75:5010 abc

参考服务器 http://91.217.139.190:5010, http://91.216.169.75:5010, http://185.80.202.180:5010

通过 http://91.217.139.190:5010/token 获取token

</details>
<details>
<summary>AIWife</summary>
Expand Down Expand Up @@ -435,14 +414,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 用yyy解密xxx

</details>
<details>
<summary>百科</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/baidu"`

- [x] 百度/百科/维基/wiki[xxx]

</details>
<details>
<summary>百度内容审核</summary>
Expand Down Expand Up @@ -572,16 +543,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 随机书评

</details>
<details>
<summary>藏头诗</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/cangtoushi"`

- [x] 藏头诗[xxx]

- [x] 藏尾诗[xxx]

</details>
<details>
<summary>选择困难症帮手</summary>
Expand Down Expand Up @@ -680,20 +641,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 删签[gif签名]

</details>
<details>
<summary>女装</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/dress"`

- [x] 女装

- [x] 男装

- [x] 随机女装

- [x] 随机男装

</details>
<details>
<summary>漂流瓶</summary>
Expand Down Expand Up @@ -817,14 +764,6 @@ print("run[CQ:image,file="+j["img"]+"]")
- [x] 下载歌单[网易云歌单链接/ID][歌单名称]
- [x] 解除绑定 [歌单名称]

</details>
<details>
<summary>黑丝</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/heisi"`

- [x] 来点黑丝/白丝/jk/巨乳/足控/网红

</details>
<details>
<summary>一言</summary>
Expand Down Expand Up @@ -857,14 +796,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 百人一首之n

</details>
<details>
<summary>关键字搜图</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/image_finder"`

- [x] 来张 [xxx]

</details>
<details>
<summary>注入指令</summary>
Expand All @@ -883,24 +814,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 更新[屌|弔|吊]

</details>
<details>
<summary>兽语加密(嗷呜~)</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/jiami"`

- [x] 兽语加密xxx

- [x] 兽语解密xxx

</details>
<details>
<summary>小鸡词典</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/jikipedia"`

- [x] [查梗|小鸡词典][]

</details>
<details>
<summary>日语听力学习材料</summary>
Expand All @@ -915,14 +828,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 日语歌曲 xxx

</details>
<details>
<summary>绝绝子</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/juejuezi"`

- [x] 喝奶茶绝绝子 | 绝绝子吃饭

</details>
<details>
<summary>疯狂星期四</summary>
Expand Down Expand Up @@ -1196,18 +1101,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 重置花名册

</details>
<details>
<summary>权重查询</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/quan"`

- 来看看大家的账号分吧~据说越高越不容易封号哦

- [x] 权重查询+@xxx

- [x] 权重查询+QQ号(为空时匹配触发者QQ)

</details>
<details>
<summary>qq空间表白墙</summary>
Expand Down Expand Up @@ -1382,16 +1275,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 更新vtb

</details>
<details>
<summary>vtb点歌</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtbmusic"`

- [x] vtb点歌

- [x] vtb随机点歌

</details>
<details>
<summary>钱包</summary>
Expand All @@ -1402,14 +1285,6 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 查看钱包排名

</details>
<details>
<summary>网易云音乐热评</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/wangyiyun"`

- [x] 来份网易云热评

</details>
<details>
<summary>据意查句</summary>
Expand Down Expand Up @@ -1437,20 +1312,6 @@ print("run[CQ:image,file="+j["img"]+"]")
- [x] 警报

- [x] 每日特惠
</details>
<details>
<summary>天气/拼音查询-名言</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenben"`

- [x] xx天气

- [x] xx拼音

- [x] 每日情话/一言/鸡汤

- [x] 绕口令

</details>
<details>
<summary>百度文心AI</summary>
Expand Down
36 changes: 13 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ go 1.20

require (
github.com/Baidu-AIP/golang-sdk v1.1.1
github.com/FloatTech/AnimeAPI v1.7.1-0.20240423052513-58ad4b85322a
github.com/FloatTech/floatbox v0.0.0-20240304064110-78a83f1af9a6
github.com/FloatTech/AnimeAPI v1.7.1-0.20240504155718-e1a4844e94a5
github.com/FloatTech/floatbox v0.0.0-20240505082030-226ec6713e14
github.com/FloatTech/gg v1.1.3-0.20230226151425-6ea91286ba08
github.com/FloatTech/imgfactory v0.2.2-0.20230413152719-e101cc3606ef
github.com/FloatTech/rendercard v0.0.10-0.20230223064326-45d29fa4ede9
github.com/FloatTech/sqlite v1.6.3
github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b
github.com/FloatTech/zbpctrl v1.6.0
github.com/FloatTech/zbputils v1.7.1-0.20231107124514-083e678fbfe6
github.com/RomiChan/syncx v0.0.0-20221202055724-5f842c53020e
github.com/FloatTech/ttl v0.0.0-20230307105452-d6f7b2b647d1
github.com/FloatTech/zbpctrl v1.6.1
github.com/FloatTech/zbputils v1.7.1
github.com/RomiChan/syncx v0.0.0-20240418144900-b7402ffdebc7
github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5
github.com/antchfx/htmlquery v1.2.5
github.com/corona10/goimagehash v1.1.0
Expand All @@ -22,9 +22,10 @@ require (
github.com/fumiama/ahsai v0.1.0
github.com/fumiama/cron v1.3.0
github.com/fumiama/go-base16384 v1.7.0
github.com/fumiama/go-registry v0.2.6
github.com/fumiama/go-registry v0.2.7
github.com/fumiama/gotracemoe v0.0.3
github.com/fumiama/jieba v0.0.0-20221203025406-36c17a10b565
github.com/fumiama/terasu v0.0.0-20240502091919-c887e26289a8
github.com/fumiama/unibase2n v0.0.0-20221020155353-02876e777430
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
github.com/jinzhu/gorm v1.9.16
Expand All @@ -35,16 +36,15 @@ require (
github.com/mroth/weightedrand v1.0.0
github.com/notnil/chess v1.9.0
github.com/pkg/errors v0.9.1
github.com/quic-go/quic-go v0.38.1
github.com/shirou/gopsutil/v3 v3.23.1
github.com/sirupsen/logrus v1.9.3
github.com/tidwall/gjson v1.14.4
github.com/wcharczuk/go-chart/v2 v2.1.0
github.com/wdvxdr1123/ZeroBot v1.7.5-0.20240410141841-6970df23ca54
github.com/wdvxdr1123/ZeroBot v1.7.5-0.20240505070304-562ffeb33dcd
gitlab.com/gomidi/midi/v2 v2.0.25
golang.org/x/image v0.3.0
golang.org/x/sys v0.8.0
golang.org/x/text v0.9.0
golang.org/x/sys v0.19.0
golang.org/x/text v0.15.0
gopkg.in/yaml.v3 v3.0.1
)

Expand All @@ -54,15 +54,12 @@ require (
github.com/antchfx/xpath v1.2.1 // indirect
github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4 // indirect
github.com/faiface/beep v1.1.0 // indirect
github.com/fumiama/go-simple-protobuf v0.1.0 // indirect
github.com/fumiama/go-simple-protobuf v0.2.0 // indirect
github.com/fumiama/gofastTEA v0.0.10 // indirect
github.com/fumiama/imgsz v0.0.2 // indirect
github.com/gabriel-vasile/mimetype v1.0.4 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hajimehoshi/oto v0.7.1 // indirect
github.com/jfreymuth/oggvorbis v1.0.1 // indirect
Expand All @@ -74,26 +71,19 @@ require (
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
github.com/onsi/ginkgo/v2 v2.9.5 // indirect
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
github.com/pkumza/numcn v1.0.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/quic-go/qpack v0.4.0 // indirect
github.com/quic-go/qtls-go1-20 v0.3.3 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
github.com/tetratelabs/wazero v1.5.0 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
golang.org/x/crypto v0.4.0 // indirect
golang.org/x/exp v0.0.0-20221205204356-47842c84f3db // indirect
golang.org/x/exp/shiny v0.0.0-20221126150942-6ab00d035af9 // indirect
golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f // indirect
golang.org/x/mod v0.10.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/tools v0.9.1 // indirect
golang.org/x/net v0.24.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
modernc.org/libc v1.21.5 // indirect
modernc.org/mathutil v1.5.0 // indirect
Expand Down
Loading

0 comments on commit 7c78dc8

Please sign in to comment.