mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
fix: 兼容 onebot v11 规定的 GetVersionInfo 字段
This commit is contained in:
parent
adbe194e63
commit
6e8ef3ef0f
@ -1216,6 +1216,10 @@ func (bot *CQBot) CQCheckURLSafely(url string) MSG {
|
|||||||
func (bot *CQBot) CQGetVersionInfo() MSG {
|
func (bot *CQBot) CQGetVersionInfo() MSG {
|
||||||
wd, _ := os.Getwd()
|
wd, _ := os.Getwd()
|
||||||
return OK(MSG{
|
return OK(MSG{
|
||||||
|
"app_name": "go-cqhttp",
|
||||||
|
"app_version": Version,
|
||||||
|
"app_full_name": fmt.Sprintf("go-cqhttp-%s_%s_%s-%s", Version, runtime.GOOS, runtime.GOARCH, runtime.Version()),
|
||||||
|
"protocol_version": "v11",
|
||||||
"coolq_directory": wd,
|
"coolq_directory": wd,
|
||||||
"coolq_edition": "pro",
|
"coolq_edition": "pro",
|
||||||
"go-cqhttp": true,
|
"go-cqhttp": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user