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

@@ -29,7 +29,7 @@ func init() { // 插件主体
for _, pic := range ctx.State["image_url"].([]string) {
fmt.Println(pic)
if result, err := moe.Search(pic, true, true); err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
ctx.SendChain(message.Text("ERROR:", err))
} else if len(result.Result) > 0 {
r := result.Result[0]
hint := "我有把握是这个!"