add plugin 渲染任意文字到图片

This commit is contained in:
源文雨
2022-03-27 13:54:26 +08:00
parent 1bfb76a4b3
commit 5837a765f1
31 changed files with 106 additions and 60 deletions

View File

@@ -38,17 +38,17 @@ func init() {
title := fmt.Sprintf("摸鱼人日历 %d月%d日", time.Now().Month(), time.Now().Day())
sg, cookies, err := sougou(title, "摸鱼人日历", ua)
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
ctx.SendChain(message.Text("ERROR:", err))
return
}
wx, err := redirect(sg, cookies, ua)
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
ctx.SendChain(message.Text("ERROR:", err))
return
}
image, err := calendar(wx, ua)
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
ctx.SendChain(message.Text("ERROR:", err))
return
}
ctx.SendChain(message.Image(image))