1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-07 20:45:53 +08:00

Merge pull request #635 from nnnewb/pr/get-version-info

onebot get_version_info 字段兼容
This commit is contained in:
Mrs4s 2021-02-19 20:43:35 +08:00 committed by GitHub
commit 69703f560f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1252,6 +1252,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,