From 6e8ef3ef0fade78d4368c79cf170bb47547dabfa Mon Sep 17 00:00:00 2001 From: nnnewb Date: Sat, 13 Feb 2021 17:05:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=20onebot=20v11=20?= =?UTF-8?q?=E8=A7=84=E5=AE=9A=E7=9A=84=20GetVersionInfo=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coolq/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coolq/api.go b/coolq/api.go index 3bf1927..b40e4a3 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -1216,6 +1216,10 @@ func (bot *CQBot) CQCheckURLSafely(url string) MSG { func (bot *CQBot) CQGetVersionInfo() MSG { wd, _ := os.Getwd() 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_edition": "pro", "go-cqhttp": true,