Skip to content

Commit 091d317

Browse files
authored
Feature zbpp bilibilipush 20230224 (#599)
* 🔥 删除小鸡词典 * ✨ 添加新插件和修改bilibilipush问题 * 🎨 去掉多余结构 * 🎨 简化语句
1 parent bdc4138 commit 091d317

File tree

8 files changed

+515
-206
lines changed

8 files changed

+515
-206
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,14 @@ print("run[CQ:image,file="+j["img"]+"]")
620620

621621
- [x] 磕cp大老师 雪乃
622622

623+
</details>
624+
<details>
625+
<summary>今日早报</summary>
626+
627+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/dailynews"`
628+
629+
- [x] 今日早报
630+
623631
</details>
624632
<details>
625633
<summary>DeepDanbooru二次元图标签识别</summary>
@@ -872,6 +880,14 @@ print("run[CQ:image,file="+j["img"]+"]")
872880

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

883+
</details>
884+
<details>
885+
<summary>疯狂星期四</summary>
886+
887+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/kfccrazythursday"`
888+
889+
- [x] 疯狂星期四
890+
875891
</details>
876892
<details>
877893
<summary>kokomi原神面板</summary>
@@ -1283,6 +1299,16 @@ print("run[CQ:image,file="+j["img"]+"]")
12831299

12841300
- [x] 更新vtb
12851301

1302+
</details>
1303+
<details>
1304+
<summary>vtb语录</summary>
1305+
1306+
`import _ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtbmusic"`
1307+
1308+
- [x] vtb点歌
1309+
1310+
- [x] vtb随机点歌
1311+
12861312
</details>
12871313
<details>
12881314
<summary>钱包</summary>

main.go

Lines changed: 85 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -56,89 +56,91 @@ import (
5656
// vvvvvvvvvvvvvv //
5757
// vvvv //
5858

59-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ahsai" // ahsai tts
60-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ai_false" // 服务器监控
61-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/aipaint" // ai绘图
62-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/aiwife" // 随机老婆
63-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/alipayvoice" // 支付宝到账语音
64-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/autowithdraw" // 触发者撤回时也自动撤回
65-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/b14" // base16384加解密
66-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baidu" // 百度一下
67-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baiduaudit" // 百度内容审核
68-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/base64gua" // base64卦加解密
69-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baseamasiro" // base天城文加解密
70-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/bilibili" // b站相关
71-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/book_review" // 哀伤雪刃吧推书记录
72-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/cangtoushi" // 藏头诗
73-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/choose" // 选择困难症帮手
74-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chouxianghua" // 说抽象话
75-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chrev" // 英文字符翻转
76-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/coser" // 三次元小姐姐
77-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/cpstory" // cp短打
78-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/danbooru" // DeepDanbooru二次元图标签识别
79-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/diana" // 嘉心糖发病
80-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/dress" // 女装
81-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/drift_bottle" // 漂流瓶
82-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/emojimix" // 合成emoji
83-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/event" // 好友申请群聊邀请事件处理
84-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/font" // 渲染任意文字到图片
85-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/fortune" // 运势
86-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/funny" // 笑话
87-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/genshin" // 原神抽卡
88-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/gif" // 制图
89-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/github" // 搜索GitHub仓库
90-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/guessmusic" // 猜歌
91-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/heisi" // 黑丝
92-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/hs" // 炉石
93-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/hyaku" // 百人一首
94-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/image_finder" // 关键字搜图
95-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/inject" // 注入指令
96-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jandan" // 煎蛋网无聊图
97-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jiami" // 兽语加密
98-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jikipedia" // 小鸡词典
99-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jptingroom" // 日语听力学习材料
100-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/juejuezi" // 绝绝子生成器
101-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/lolicon" // lolicon 随机图片
102-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/magicprompt" // magicprompt吟唱提示
103-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/midicreate" // 简易midi音乐制作
104-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moegoe" // 日韩 VITS 模型拟声
105-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moyu" // 摸鱼
106-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moyu_calendar" // 摸鱼人日历
107-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/music" // 点歌
108-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nativesetu" // 本地涩图
109-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nativewife" // 本地老婆
110-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nbnhhsh" // 拼音首字母缩写释义工具
111-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nihongo" // 日语语法学习
112-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/novel" // 铅笔小说网搜索
113-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nsfw" // nsfw图片识别
114-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/omikuji" // 浅草寺求签
115-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/qqwife" // 一群一天一夫一妻制群老婆
116-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/quan" // QQ权重查询
117-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/qzone" // qq空间表白墙
118-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/realcugan" // realcugan清晰术
119-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/reborn" // 投胎
120-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/runcode" // 在线运行代码
121-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/saucenao" // 以图搜图
122-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/scale" // 叔叔的AI二次元图片放大
123-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/score" // 分数
124-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/setutime" // 来份涩图
125-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/shadiao" // 沙雕app
126-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/shindan" // 测定
127-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/tarot" // 抽塔罗牌
128-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/tiangou" // 舔狗日记
129-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/tracemoe" // 搜番
130-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/translation" // 翻译
131-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vitsnyaru" // vits猫雷
132-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtb_quotation" // vtb语录
133-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wallet" // 钱包
134-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wangyiyun" // 网易云音乐热评
135-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/warframeapi" // warframeAPI插件
136-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenben" // 文本指令大全
137-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenxinAI" // 百度文心AI画图
138-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/word_count" // 聊天热词
139-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wordle" // 猜单词
140-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ygo" // 游戏王相关插件
141-
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ymgal" // 月幕galgame
59+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ahsai" // ahsai tts
60+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ai_false" // 服务器监控
61+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/aipaint" // ai绘图
62+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/aiwife" // 随机老婆
63+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/alipayvoice" // 支付宝到账语音
64+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/autowithdraw" // 触发者撤回时也自动撤回
65+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/b14" // base16384加解密
66+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baidu" // 百度一下
67+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baiduaudit" // 百度内容审核
68+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/base64gua" // base64卦加解密
69+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/baseamasiro" // base天城文加解密
70+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/bilibili" // b站相关
71+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/book_review" // 哀伤雪刃吧推书记录
72+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/cangtoushi" // 藏头诗
73+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/choose" // 选择困难症帮手
74+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chouxianghua" // 说抽象话
75+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chrev" // 英文字符翻转
76+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/coser" // 三次元小姐姐
77+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/cpstory" // cp短打
78+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/dailynews" // 今日早报
79+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/danbooru" // DeepDanbooru二次元图标签识别
80+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/diana" // 嘉心糖发病
81+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/dress" // 女装
82+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/drift_bottle" // 漂流瓶
83+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/emojimix" // 合成emoji
84+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/event" // 好友申请群聊邀请事件处理
85+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/font" // 渲染任意文字到图片
86+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/fortune" // 运势
87+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/funny" // 笑话
88+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/genshin" // 原神抽卡
89+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/gif" // 制图
90+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/github" // 搜索GitHub仓库
91+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/guessmusic" // 猜歌
92+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/heisi" // 黑丝
93+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/hs" // 炉石
94+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/hyaku" // 百人一首
95+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/image_finder" // 关键字搜图
96+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/inject" // 注入指令
97+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jandan" // 煎蛋网无聊图
98+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jiami" // 兽语加密
99+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/jptingroom" // 日语听力学习材料
100+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/juejuezi" // 绝绝子生成器
101+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/kfccrazythursday" // 疯狂星期四
102+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/lolicon" // lolicon 随机图片
103+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/magicprompt" // magicprompt吟唱提示
104+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/midicreate" // 简易midi音乐制作
105+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moegoe" // 日韩 VITS 模型拟声
106+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moyu" // 摸鱼
107+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/moyu_calendar" // 摸鱼人日历
108+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/music" // 点歌
109+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nativesetu" // 本地涩图
110+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nativewife" // 本地老婆
111+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nbnhhsh" // 拼音首字母缩写释义工具
112+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nihongo" // 日语语法学习
113+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/novel" // 铅笔小说网搜索
114+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/nsfw" // nsfw图片识别
115+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/omikuji" // 浅草寺求签
116+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/qqwife" // 一群一天一夫一妻制群老婆
117+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/quan" // QQ权重查询
118+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/qzone" // qq空间表白墙
119+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/realcugan" // realcugan清晰术
120+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/reborn" // 投胎
121+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/runcode" // 在线运行代码
122+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/saucenao" // 以图搜图
123+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/scale" // 叔叔的AI二次元图片放大
124+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/score" // 分数
125+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/setutime" // 来份涩图
126+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/shadiao" // 沙雕app
127+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/shindan" // 测定
128+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/tarot" // 抽塔罗牌
129+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/tiangou" // 舔狗日记
130+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/tracemoe" // 搜番
131+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/translation" // 翻译
132+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vitsnyaru" // vits猫雷
133+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtb_quotation" // vtb语录
134+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/vtbmusic" // vtb点歌
135+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wallet" // 钱包
136+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wangyiyun" // 网易云音乐热评
137+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/warframeapi" // warframeAPI插件
138+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenben" // 文本指令大全
139+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wenxinAI" // 百度文心AI画图
140+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/word_count" // 聊天热词
141+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/wordle" // 猜单词
142+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ygo" // 游戏王相关插件
143+
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/ymgal" // 月幕galgame
142144

143145
// _ "github.com/FloatTech/ZeroBot-Plugin/plugin/thesaurus" // 词典匹配回复
144146
// _ "github.com/FloatTech/ZeroBot-Plugin/plugin/wtf" // 鬼东西

plugin/bilibili/bilibili.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ func init() {
340340
for i := 0; i < len(danmaku.Data.Data); i++ {
341341
totalDanmuku += len(danmaku.Data.Data[i].Danmakus) + 1
342342
}
343-
cw := 10000
343+
cw := 3000
344344
mcw := float64(2000)
345345
ch := 550 + len(danmaku.Data.Data)*int(faceH) + totalDanmuku*int(danmuH)
346346
canvas = gg.NewContext(cw, ch)

plugin/bilibili/bilibilipush.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"bytes"
66
"encoding/json"
77
"fmt"
8+
"net/http"
89
"strconv"
910
"time"
1011

@@ -175,7 +176,19 @@ func getName(buid int64) (name string, err error) {
175176
var ok bool
176177
if name, ok = upMap[buid]; !ok {
177178
var data []byte
178-
data, err = web.RequestDataWith(web.NewDefaultClient(), fmt.Sprintf(infoURL, buid), "GET", referer, ua, nil)
179+
data, err = web.RequestDataWithHeaders(web.NewDefaultClient(), fmt.Sprintf(infoURL, buid), "GET", func(r *http.Request) error {
180+
r.Header.Set("refer", referer)
181+
r.Header.Set("user-agent", ua)
182+
cookie := ""
183+
if cfg != nil {
184+
cookie, err = cfg.Load()
185+
if err != nil {
186+
return err
187+
}
188+
}
189+
r.Header.Set("cookie", cookie)
190+
return nil
191+
}, nil)
179192
if err != nil {
180193
return
181194
}

plugin/dailynews/dailynews.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Package dailynews 今日早报
2+
package dailynews
3+
4+
import (
5+
"github.com/FloatTech/floatbox/binary"
6+
"github.com/FloatTech/floatbox/web"
7+
ctrl "github.com/FloatTech/zbpctrl"
8+
"github.com/FloatTech/zbputils/control"
9+
"github.com/tidwall/gjson"
10+
zero "github.com/wdvxdr1123/ZeroBot"
11+
"github.com/wdvxdr1123/ZeroBot/message"
12+
)
13+
14+
const api = "http://dwz.2xb.cn/zaob"
15+
16+
func init() {
17+
engine := control.Register("dailynews", &ctrl.Options[*zero.Ctx]{
18+
DisableOnDefault: false,
19+
Brief: "今日早报",
20+
Help: "- 今日早报",
21+
PrivateDataFolder: "dailynews",
22+
})
23+
24+
engine.OnFullMatch(`今日早报`).SetBlock(true).
25+
Handle(func(ctx *zero.Ctx) {
26+
data, err := web.GetData(api)
27+
if err != nil {
28+
return
29+
}
30+
picURL := gjson.Get(binary.BytesToString(data), "imageUrl").String()
31+
if err != nil {
32+
ctx.SendChain(message.Text("ERROR:", err))
33+
return
34+
}
35+
ctx.SendChain(message.Image(picURL))
36+
})
37+
}

0 commit comments

Comments
 (0)