Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4b90a06
feat(bilibili): 添加视频下载 (#1157)
guohuiyuan Apr 23, 2025
30e9d04
feat: 电影查询 (#1155)
fangliuyu Apr 23, 2025
2c607de
chore: bump deps (#1158)
github-actions[bot] Apr 23, 2025
0b89312
chore(lint): 改进代码样式 (#1159)
github-actions[bot] Apr 23, 2025
4151464
chore: use new nixpkgs with overlay which bring back go_1_20 instead …
Nobooooody May 6, 2025
39e1f56
fix: 疯狂星期四 API (#1161)
Doordoorjay May 6, 2025
e1d2dee
feat: replace jieba with gse
fumiama May 13, 2025
c888936
chore: bump deps (#1166)
github-actions[bot] May 13, 2025
076b113
fix(wordcount): 修改分词模块至外部gse仓库 (#1165)
Doordoorjay May 13, 2025
42fe124
chore(lint): 改进代码样式 (#1167)
github-actions[bot] May 14, 2025
961fbb0
🔖 v1.9.7
fumiama May 14, 2025
609d819
chore: sync data
fumiama Jun 1, 2025
f70cab8
feat(aichat): add more configs
fumiama Jun 1, 2025
4269057
chore: bump deps (#1170)
github-actions[bot] Jun 1, 2025
997857a
chore: update deps
fumiama Jun 1, 2025
5b28ad7
chore: bump deps (#1171)
github-actions[bot] Jun 1, 2025
566f6ec
🔖 v1.9.8
fumiama Jun 1, 2025
95dd5e6
chore: update deps
fumiama Jun 1, 2025
43b45ce
chore: bump deps (#1172)
github-actions[bot] Jun 1, 2025
beada7f
chore: update deps
fumiama Jun 14, 2025
cac3a4b
chore(lint): 改进代码样式 (#1174)
github-actions[bot] Jun 14, 2025
19e5e66
chore: bump deps (#1173)
github-actions[bot] Jun 14, 2025
c94ee36
chore: bump deps (#1175)
github-actions[bot] Jun 15, 2025
1c0d914
fix: 修复 niuniu 插件 bug,修改标点,添加部分注释 (#1177)
Rinai-R Jun 27, 2025
0615993
fix: 修复注销牛牛无法进行累加收费的问题&&优化代码 (#1178)
xyy0411 Jul 2, 2025
cb0ffa0
feat(music): 龙珠聚合搜索 (#1179)
guohuiyuan Jul 5, 2025
617d4f5
feat: airecord (#1180)
guohuiyuan Jul 20, 2025
21aa3bc
chore: bump deps (#1182)
github-actions[bot] Jul 20, 2025
a1621f3
optimize(antiabuse): 添加违禁词解释 (#1183)
guohuiyuan Jul 23, 2025
b6ddda1
fix(kfccrazythursday): API解析 (#1184)
Doordoorjay Jul 25, 2025
2fa7868
fix(gif): branch名称导致的404问题 (#1186)
Doordoorjay Aug 11, 2025
34f3b9b
feat(aiimage&aichat): add new plugin & summary of group chat (#1187)
guohuiyuan Aug 22, 2025
1f66f47
chore: bump deps (#1188)
github-actions[bot] Aug 25, 2025
20d49cc
feat(aichat): 添加/gpt命令,直接聊天 (#1190)
guohuiyuan Sep 1, 2025
1e7b2d3
feat: 添加插件 crypter (#1191)
Kajiekazz Sep 1, 2025
cd16a75
doc: update README.md (#1193)
Kajiekazz Sep 2, 2025
35292a6
chore(lint): 改进代码样式 (#1192)
github-actions[bot] Sep 2, 2025
ac2d533
feat(bilibiliparse): B站视频解析 视频上传开关 (#1196)
shudorcl Sep 3, 2025
fb09083
feat(crypter): 添加语音 (#1197)
guohuiyuan Sep 3, 2025
08e02ab
fix(aichat): adapt to 百炼
fumiama Sep 10, 2025
b012df4
feat(niuniu): 添加可自定义购买商品数量,调整商品单价 (#1189)
xyy0411 Sep 10, 2025
e84e444
Changes by create-pull-request action (#1198)
github-actions[bot] Sep 10, 2025
fc9a21d
Changes by create-pull-request action (#1199)
github-actions[bot] Sep 10, 2025
6b505d0
🔖 v1.9.9
fumiama Sep 10, 2025
e6a4dfc
fix(aichat): adapt to 百炼
fumiama Sep 10, 2025
e020bf0
✨ 添加rsshub推送
guohuiyuan Sep 14, 2025
5cbc932
🔥 删除注释
guohuiyuan Sep 14, 2025
641495b
chore: update wife data (#1207)
shudorcl Sep 16, 2025
b9250ab
doc: update zb version tag (#1206)
Kajiekazz Sep 16, 2025
5b6f21d
Merge branch 'FloatTech:master' into feature-rsshub-20250914
guohuiyuan Sep 16, 2025
c9033f5
🎨 修改命令
guohuiyuan Sep 16, 2025
fe9db2d
✏️ 修改lint
guohuiyuan Sep 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 84 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

[![go](https://goreportcard.com/badge/github.com/FloatTech/ZeroBot-Plugin?style=flat-square&logo=go)](https://goreportcard.com/badge/github.com/FloatTech/ZeroBot-Plugin)
[![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)
[![zerobot](https://img.shields.io/badge/zerobot-v1.8.0-black?style=flat-square&logo=go)](https://github.com/wdvxdr1123/ZeroBot)
[![zerobot](https://img.shields.io/badge/zerobot-v1.8.1-black?style=flat-square&logo=go)](https://github.com/wdvxdr1123/ZeroBot)



Expand Down Expand Up @@ -192,6 +192,18 @@ zerobot [-h] [-m] [-n nickname] [-t token] [-u url] [-g url] [-p prefix] [-d|w]

- [x] 早安 | 晚安

</details>
<details>
<summary>违禁词检测</summary>

`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/antiabuse"
`
- [x] 添加违禁词

- [x] 删除违禁词

- [x] 查看违禁词

</details>
<details>
<summary>ATRI</summary>
Expand Down Expand Up @@ -255,6 +267,8 @@ zerobot [-h] [-m] [-n nickname] [-t token] [-u url] [-g url] [-p prefix] [-d|w]
- [x] 翻牌

- [x] 赞我

- [x] 群签到

- [x] [开启 | 关闭]入群验证

Expand All @@ -276,6 +290,20 @@ zerobot [-h] [-m] [-n nickname] [-t token] [-u url] [-g url] [-p prefix] [-d|w]

- 设置欢迎语可选添加参数说明:{at}可在发送时艾特被欢迎者 {nickname}是被欢迎者名字 {avatar}是被欢迎者头像 {uid}是被欢迎者QQ号 {gid}是当前群群号 {groupname} 是当前群群名

</details>
<details>
<summary>群应用:AI声聊</summary>

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

- [x] 设置AI语音群号1048452984(tips:机器人任意所在群聊即可)

- [x] 设置AI语音模型

- [x] 查看AI语音配置

- [x] 发送AI语音xxx

</details>
<details>
<summary>定时指令触发器</summary>
Expand Down Expand Up @@ -384,6 +412,18 @@ print("run[CQ:image,file="+j["img"]+"]")

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

</details>
<details>
<summary>aiimage</summary>

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

- [x] 设置AI画图密钥xxx
- [x] 设置AI画图接口地址https://api.siliconflow.cn/v1/images/generations
- [x] 设置AI画图模型名Kwai-Kolors/Kolors
- [x] 查看AI画图配置
- [x] AI画图 [描述]

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

- [x] 磕cp大老师 雪乃

</details>
<details>
<summary>奇怪语言加解密</summary>

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

- [x] 齁语加密 [文本] 或 h加密 [文本]
- [x] 齁语解密 [密文] 或 h解密 [密文]
- [x] fumo加密 [文本]
- [x] fumo解密 [文本]

</details>
<details>
<summary>今日早报</summary>
Expand Down Expand Up @@ -976,6 +1027,14 @@ print("run[CQ:image,file="+j["img"]+"]")
- (机器人回答:您的下一条指令将被记录,在@@every 1m时触发)
- mc服务器订阅拉取
</details>
<details>
<summary>Movies猫眼电影查询</summary>

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

- [x] 今日电影
- [x] 预售电影
</details>
<details>
<summary>摸鱼</summary>

Expand Down Expand Up @@ -1018,6 +1077,10 @@ print("run[CQ:image,file="+j["img"]+"]")
- [x] 酷我点歌[xxx]

- [x] 酷狗点歌[xxx]

- [x] qq点歌[xxx]

- [x] 咪咕点歌[xxx]

</details>
<details>
Expand Down Expand Up @@ -1221,6 +1284,17 @@ print("run[CQ:image,file="+j["img"]+"]")

- [x] 打劫[对方Q号|@对方QQ]

</details>
<details>
<summary>RSSHub</summary>

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

- [x] 添加rsshub订阅-/bookfere/weekly
- [x] 删除rsshub订阅-/bookfere/weekly
- [x] 查看rsshub订阅列表
- [x] rsshub同步 (使用job执行定时任务------记录在"@every 10m"触发的指令)

</details>
<details>
<summary>在线代码运行</summary>
Expand Down Expand Up @@ -1456,7 +1530,7 @@ print("run[CQ:image,file="+j["img"]+"]")

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

- [x] 热词 [群号] [消息数目]|热词 123456 1000
- [x] 热词 [消息数目]|热词 1000

</details>
<details>
Expand Down Expand Up @@ -1572,14 +1646,20 @@ print("run[CQ:image,file="+j["img"]+"]")
- [x] 设置AI聊天温度80
- [x] 设置AI聊天接口类型[OpenAI|OLLaMA|GenAI]
- [x] 设置AI聊天(不)支持系统提示词
- [x] 设置AI聊天接口地址https://xxx
- [x] 设置AI聊天接口地址https://api.siliconflow.cn/v1/chat/completions
- [x] 设置AI聊天密钥xxx
- [x] 设置AI聊天模型名xxx
- [x] 设置AI聊天模型名Qwen/Qwen3-8B
- [x] 查看AI聊天系统提示词
- [x] 重置AI聊天系统提示词
- [x] 设置AI聊天系统提示词xxx
- [x] 设置AI聊天分隔符`</think>`(留空则清除)
- [x] 设置AI聊天(不)响应AT
- [x] 设置AI聊天最大长度4096
- [x] 设置AI聊天TopP 0.9
- [x] 设置AI聊天(不)以AI语音输出
- [x] 查看AI聊天配置
- [x] 重置AI聊天
- [x] 群聊总结 [消息数目]|群聊总结 1000

</details>
<details>
Expand Down
8 changes: 7 additions & 1 deletion console/console_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ func setConsoleTitle(title string) (err error) {
}

func init() {
debugMode := os.Getenv("DEBUG_MODE") == "1"
stdin := windows.Handle(os.Stdin.Fd())

var mode uint32
err := windows.GetConsoleMode(stdin, &mode)
if err != nil {
panic(err)
if debugMode {
logrus.Warnf("调试模式下忽略控制台模式获取失败: %v", err)
return // 调试模式下直接返回,跳过后续配置
} else {
panic(err) // 非调试模式下 panic
}
}

mode &^= windows.ENABLE_QUICK_EDIT_MODE // 禁用快速编辑模式
Expand Down
2 changes: 1 addition & 1 deletion data
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
}
),
buildGoApplication ? pkgs.buildGoApplication,
...
}:
buildGoApplication {
pname = "ZeroBot-Plugin";
Expand Down
25 changes: 21 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 18 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
description = "基于 ZeroBot 的 OneBot 插件";

# pin nixpkgs to preserve dropped go_1_20
inputs.nixpkgs.url = "github:NixOS/nixpkgs/33c51330782cb486764eb598d5907b43dc87b4c2";
inputs.nixpkgs-with-go_1_20.url = "github:NixOS/nixpkgs/33c51330782cb486764eb598d5907b43dc87b4c2";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.gomod2nix.url = "github:nix-community/gomod2nix";
inputs.gomod2nix.inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -11,26 +11,36 @@
outputs = {
self,
nixpkgs,
nixpkgs-with-go_1_20,
flake-utils,
gomod2nix,
}: let
...
} @ inputs: let
allSystems = flake-utils.lib.allSystems;
in (
flake-utils.lib.eachSystem allSystems
(system: let
pkgs = nixpkgs.legacyPackages.${system};
old-nixpkgs = nixpkgs-with-go_1_20.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;

overlays = [
(_: _: {
go_1_20 = old-nixpkgs.go_1_20;
})
];
};

# The current default sdk for macOS fails to compile go projects, so we use a newer one for now.
# This has no effect on other platforms.
callPackage = pkgs.darwin.apple_sdk_11_0.callPackage or pkgs.callPackage;
in {
# doCheck will fail at write files
packages = rec {

ZeroBot-Plugin =
(callPackage ./. {
ZeroBot-Plugin = (callPackage ./. (inputs
// {
inherit (gomod2nix.legacyPackages.${system}) buildGoApplication;
})
}))
.overrideAttrs (_: {doCheck = false;});

default = ZeroBot-Plugin;
Expand All @@ -43,7 +53,6 @@
pkgs.cacert
];
};

};
devShells.default = callPackage ./shell.nix {
inherit (gomod2nix.legacyPackages.${system}) mkGoEnv gomod2nix;
Expand Down
19 changes: 14 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ go 1.20

require (
github.com/Baidu-AIP/golang-sdk v1.1.1
github.com/FloatTech/AnimeAPI v1.7.1-0.20250217140215-4856397458c9
github.com/FloatTech/floatbox v0.0.0-20241106130736-5aea0a935024
github.com/FloatTech/AnimeAPI v1.7.1-0.20250901143505-180d33844860
github.com/FloatTech/floatbox v0.0.0-20250513111443-adba80e84e80
github.com/FloatTech/gg v1.1.3
github.com/FloatTech/imgfactory v0.2.2-0.20230413152719-e101cc3606ef
github.com/FloatTech/rendercard v0.2.0
github.com/FloatTech/sqlite v1.7.1
github.com/FloatTech/ttl v0.0.0-20240716161252-965925764562
github.com/FloatTech/zbpctrl v1.7.0
github.com/FloatTech/zbputils v1.7.2-0.20250330125231-d8be1c9d3b9c
github.com/FloatTech/zbputils v1.7.2-0.20250812085410-2741050f465f
github.com/RomiChan/syncx v0.0.0-20240418144900-b7402ffdebc7
github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5
github.com/Tnze/go-mc v1.20.2
Expand All @@ -22,29 +22,31 @@ require (
github.com/disintegration/imaging v1.6.2
github.com/fumiama/ahsai v0.1.0
github.com/fumiama/cron v1.3.0
github.com/fumiama/deepinfra v0.0.0-20250330125128-71ec2f7c085e
github.com/fumiama/deepinfra v0.0.0-20250910144855-27a4e697106d
github.com/fumiama/go-base16384 v1.7.0
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/slowdo v0.0.0-20241001074058-27c4fe5259a4
github.com/fumiama/terasu v0.0.0-20241027183601-987ab91031ce
github.com/fumiama/unibase2n v0.0.0-20240530074540-ec743fd5a6d6
github.com/go-ego/gse v0.80.3
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
github.com/google/uuid v1.6.0
github.com/jinzhu/gorm v1.9.16
github.com/jozsefsallai/gophersauce v1.0.1
github.com/kanrichan/resvg-go v0.0.2-0.20231001163256-63db194ca9f5
github.com/lithammer/fuzzysearch v1.1.8
github.com/liuzl/gocc v0.0.0-20231231122217-0372e1059ca5
github.com/mmcdole/gofeed v1.3.0
github.com/mroth/weightedrand v1.0.0
github.com/notnil/chess v1.9.0
github.com/pkg/errors v0.9.1
github.com/shirou/gopsutil/v3 v3.24.5
github.com/sirupsen/logrus v1.9.3
github.com/tidwall/gjson v1.18.0
github.com/wcharczuk/go-chart/v2 v2.1.2
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250330133859-27c25d9412b5
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250804063440-ccc03e33ac20
gitlab.com/gomidi/midi/v2 v2.1.7
golang.org/x/image v0.24.0
golang.org/x/sys v0.30.0
Expand All @@ -53,8 +55,10 @@ require (
)

require (
github.com/PuerkitoBio/goquery v1.8.0 // indirect
github.com/adamzy/cedar-go v0.0.0-20170805034717-80a9c64b256d // indirect
github.com/ajstarks/svgo v0.0.0-20200320125537-f189e35d30ca // indirect
github.com/andybalholm/cascadia v1.3.1 // indirect
github.com/antchfx/xpath v1.3.3 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/ericpauley/go-quantize v0.0.0-20200331213906-ae555eb2afa4 // indirect
Expand All @@ -69,10 +73,14 @@ require (
github.com/jfreymuth/oggvorbis v1.0.1 // indirect
github.com/jfreymuth/vorbis v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/liuzl/cedar-go v0.0.0-20170805034717-80a9c64b256d // indirect
github.com/liuzl/da v0.0.0-20180704015230-14771aad5b1d // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mmcdole/goxpp v1.1.1-0.20240225020742-a0c311522b23 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/ncruces/go-strftime v0.1.9 // indirect
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
Expand All @@ -85,6 +93,7 @@ require (
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/vcaesar/cedar v0.20.2 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
golang.org/x/exp/shiny v0.0.0-20250305212735-054e65f0b394 // indirect
golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a // indirect
Expand Down
Loading
Loading