Skip to content

Commit 6bff62b

Browse files
committed
✨ 插件名称自动注册
1 parent 5485cc3 commit 6bff62b

File tree

108 files changed

+124
-126
lines changed

Some content is hidden

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

108 files changed

+124
-126
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/FloatTech/sqlite v1.6.2
1313
github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b
1414
github.com/FloatTech/zbpctrl v1.5.3-0.20230514154630-b74e6fcca380
15-
github.com/FloatTech/zbputils v1.6.2-0.20230831134542-28c5ba506758
15+
github.com/FloatTech/zbputils v1.6.2-0.20230903052647-820a67856603
1616
github.com/RomiChan/syncx v0.0.0-20221202055724-5f842c53020e
1717
github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5
1818
github.com/antchfx/htmlquery v1.2.5

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b h1:tvciXWq2nuvTbFeJG
1818
github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b/go.mod h1:fHZFWGquNXuHttu9dUYoKuNbm3dzLETnIOnm1muSfDs=
1919
github.com/FloatTech/zbpctrl v1.5.3-0.20230514154630-b74e6fcca380 h1:qmwoT8xVaND01aCdwy+5/j6z490nehQWZAVyTBN8ahU=
2020
github.com/FloatTech/zbpctrl v1.5.3-0.20230514154630-b74e6fcca380/go.mod h1:gkGC1C1eEUd/Ld/ja68zas5j2ZktIZCdnj2FMaM+Au0=
21-
github.com/FloatTech/zbputils v1.6.2-0.20230728081122-94d4d957f3bf h1:PwH9aMnmN+m204cVIqUrI3e7nsdQi/IGW012Fjzb1bs=
22-
github.com/FloatTech/zbputils v1.6.2-0.20230728081122-94d4d957f3bf/go.mod h1:JRnGR7EGeEQgxOs+c0rZAhrS9Es2BTcGHdIDHXIPRzQ=
23-
github.com/FloatTech/zbputils v1.6.2-0.20230831134542-28c5ba506758 h1:z0hhIwGN8ifKExa6xkujZwAQwJNU6AnELt+/A6nAdcY=
24-
github.com/FloatTech/zbputils v1.6.2-0.20230831134542-28c5ba506758/go.mod h1:JRnGR7EGeEQgxOs+c0rZAhrS9Es2BTcGHdIDHXIPRzQ=
21+
github.com/FloatTech/zbputils v1.6.2-0.20230903052647-820a67856603 h1:06zrK+XJCOLhW+HADibOmeqcVEC6vwFGRQiDRyvioWQ=
22+
github.com/FloatTech/zbputils v1.6.2-0.20230903052647-820a67856603/go.mod h1:JRnGR7EGeEQgxOs+c0rZAhrS9Es2BTcGHdIDHXIPRzQ=
2523
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
2624
github.com/RomiChan/syncx v0.0.0-20221202055724-5f842c53020e h1:wR3MXQ3VbUlPKOOUwLOYgh/QaJThBTYtsl673O3lqSA=
2725
github.com/RomiChan/syncx v0.0.0-20221202055724-5f842c53020e/go.mod h1:vD7Ra3Q9onRtojoY5sMCLQ7JBgjUsrXDnDKyFxqpf9w=

main.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434

3535
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chat" // 基础词库
3636

37-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/sleep_manage" // 统计睡眠时间
37+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/sleepmanage" // 统计睡眠时间
3838

3939
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/atri" // ATRI词库
4040

@@ -61,18 +61,18 @@ import (
6161
// vvvv //
6262

6363
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ahsai" // ahsai tts
64-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ai_false" // 服务器监控
64+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/aifalse" // 服务器监控
6565
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/aipaint" // ai绘图
6666
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/aiwife" // 随机老婆
6767
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/alipayvoice" // 支付宝到账语音
6868
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/autowithdraw" // 触发者撤回时也自动撤回
69-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/b14" // base16384加解密
7069
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baidu" // 百度一下
7170
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baiduaudit" // 百度内容审核
71+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/base16384" // base16384加解密
7272
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/base64gua" // base64卦加解密
7373
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baseamasiro" // base天城文加解密
7474
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/bilibili" // b站相关
75-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/book_review" // 哀伤雪刃吧推书记录
75+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/bookreview" // 哀伤雪刃吧推书记录
7676
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/cangtoushi" // 藏头诗
7777
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chess" // 国际象棋
7878
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/choose" // 选择困难症帮手
@@ -86,7 +86,7 @@ import (
8686
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/dish" // 程序员做饭指南
8787
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/drawlots" // 多功能抽签
8888
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/dress" // 女装
89-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/drift_bottle" // 漂流瓶
89+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/driftbottle" // 漂流瓶
9090
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/emojimix" // 合成emoji
9191
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/event" // 好友申请群聊邀请事件处理
9292
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/font" // 渲染任意文字到图片
@@ -100,7 +100,7 @@ import (
100100
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/hitokoto" // 一言
101101
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/hs" // 炉石
102102
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/hyaku" // 百人一首
103-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/image_finder" // 关键字搜图
103+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/imgfinder" // 关键字搜图
104104
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/inject" // 注入指令
105105
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jandan" // 煎蛋网无聊图
106106
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jiami" // 兽语加密
@@ -112,14 +112,14 @@ import (
112112
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/midicreate" // 简易midi音乐制作
113113
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moegoe" // 日韩 VITS 模型拟声
114114
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moyu" // 摸鱼
115-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moyu_calendar" // 摸鱼人日历
115+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moyucalendar" // 摸鱼人日历
116116
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/music" // 点歌
117117
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nativesetu" // 本地涩图
118-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nativewife" // 本地老婆
119118
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nbnhhsh" // 拼音首字母缩写释义工具
120119
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nihongo" // 日语语法学习
121120
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/novel" // 铅笔小说网搜索
122121
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nsfw" // nsfw图片识别
122+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nwife" // 本地老婆
123123
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/omikuji" // 浅草寺求签
124124
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/qqwife" // 一群一天一夫一妻制群老婆
125125
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/quan" // QQ权重查询
@@ -139,16 +139,16 @@ import (
139139
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/tracemoe" // 搜番
140140
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/translation" // 翻译
141141
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vitsnyaru" // vits猫雷
142-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtb_quotation" // vtb语录
143142
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtbmusic" // vtb点歌
143+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtbquotation" // vtb语录
144144
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wallet" // 钱包
145145
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wangyiyun" // 网易云音乐热评
146146
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wantquotes" // 据意查句
147147
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/warframeapi" // warframeAPI插件
148148
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenben" // 文本指令大全
149-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenxinAI" // 百度文心AI画图
149+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenxinvilg" // 百度文心AI画图
150150
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wife" // 抽老婆
151-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/word_count" // 聊天热词
151+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wordcount" // 聊天热词
152152
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wordle" // 猜单词
153153
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ygo" // 游戏王相关插件
154154
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ymgal" // 月幕galgame

plugin/ahsai/ahsai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var (
2727
)
2828

2929
func init() {
30-
engine := control.Register("ahsai", &ctrl.Options[*zero.Ctx]{
30+
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{
3131
DisableOnDefault: false,
3232
Brief: "フリーテキスト音声合成",
3333
Help: "- 使[伊織弓鶴|紲星あかり|結月ゆかり|京町セイカ|東北きりたん|東北イタコ|ついなちゃん標準語|ついなちゃん関西弁|音街ウナ|琴葉茜|吉田くん|民安ともえ|桜乃そら|月読アイ|琴葉葵|東北ずん子|月読ショウタ|水奈瀬コウ]说(日语)",

plugin/ai_false/ai_false.go renamed to plugin/aifalse/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var (
5151
)
5252

5353
func init() { // 插件主体
54-
engine := control.Register("aifalse", &ctrl.Options[*zero.Ctx]{
54+
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{
5555
DisableOnDefault: false,
5656
Brief: "自检, 全局限速",
5757
Help: "- 查询计算机当前活跃度: [检查身体 | 自检 | 启动自检 | 系统状态]\n" +

plugin/aipaint/aipaint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (r *result) String() string {
4646
}
4747

4848
func init() { // 插件主体
49-
engine := control.Register("aipaint", &ctrl.Options[*zero.Ctx]{
49+
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{
5050
DisableOnDefault: false,
5151
Brief: "ai绘图",
5252
Help: "- [ ai绘图 | 生成色图 | 生成涩图 | ai画图 ] xxx\n" +

plugin/aiwife/non-existent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const (
1717
)
1818

1919
func init() { // 插件主体
20-
control.Register("aiwife", &ctrl.Options[*zero.Ctx]{
20+
control.AutoRegister(&ctrl.Options[*zero.Ctx]{
2121
DisableOnDefault: false,
2222
Brief: "ai随机生成老婆",
2323
Help: "- waifu | 随机waifu",

plugin/alipayvoice/alipayvoice.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const (
1616
)
1717

1818
func init() { // 插件主体
19-
engine := control.Register("alipayvoice", &ctrl.Options[*zero.Ctx]{
19+
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{
2020
DisableOnDefault: false,
2121
Brief: "支付宝到账语音",
2222
Help: "- 支付宝到账 1",

plugin/antiabuse/anti.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func onDel(uid int64, _ struct{}) {
3838
}
3939

4040
func init() {
41-
engine := control.Register("antiabuse", &ctrl.Options[*zero.Ctx]{
41+
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{
4242
DisableOnDefault: false,
4343
Brief: "违禁词检测",
4444
Help: "- /[添加|删除|查看]违禁词",

0 commit comments

Comments
 (0)