-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加coser插件 #87
Merged
Merged
添加coser插件 #87
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fumiama
requested changes
Dec 15, 2021
另外有一个小建议,就是每次想好了再推,不然会历史很杂乱,也有很多无效信息。 |
用message.Image有奇怪的bug,图片映射不出来
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年12月15日(星期三) 中午12:01
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [FloatTech/ZeroBot-Plugin] 添加coser插件 (PR #87)
@fumiama requested changes on this pull request.
In plugin_coser/coser.go:
> + } + ctx.SendChain(message.Text("少女祈祷中......")) + data, err := web.ReqWith(coserURL, "GET", "", ua) + if err != nil { + log.Println("err为:", err) + } + var m message.Message + text := gjson.Get(helper.BytesToString(data), "data.Title").String() + m = append(m, + message.CustomNode( + zero.BotConfig.NickName[0], + ctx.Event.SelfID, + text, + )) + gjson.Get(helper.BytesToString(data), "data.data").ForEach(func(_, value gjson.Result) bool { + imgcq := `[CQ:image,file=` + value.String() + `]`
建议用message.Image()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
怪了,应该是 |
fumiama
approved these changes
Dec 15, 2021
具体是怎么无法映射的 |
就是
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2021年12月15日(星期三) 下午2:30
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [FloatTech/ZeroBot-Plugin] 添加coser插件 (PR #87)
用message.Image有奇怪的bug,图片映射不出来
具体是怎么无法映射的
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
看看你这个代码怎么写的以及用的什么onebot端 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.