mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-08 13:06:04 +08:00
Merge pull request #635 from nnnewb/pr/get-version-info
onebot get_version_info 字段兼容
This commit is contained in:
commit
69703f560f
@ -1252,6 +1252,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