mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 11:33:48 +08:00
Merge pull request #446 from Shigma/patch-1
get_status: fix inconsistant bahavior compared to onebot spec
This commit is contained in:
commit
c7e6457e9e
@ -781,6 +781,7 @@ func (bot *CQBot) CQSetGroupPortrait(groupId int64, file, cache string) MSG {
|
|||||||
return Failed(100)
|
return Failed(100)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/howmanybots/onebot/blob/master/v11/specs/api/public.md#get_status-%E8%8E%B7%E5%8F%96%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81
|
||||||
func (bot *CQBot) CQGetStatus() MSG {
|
func (bot *CQBot) CQGetStatus() MSG {
|
||||||
return OK(MSG{
|
return OK(MSG{
|
||||||
"app_initialized": true,
|
"app_initialized": true,
|
||||||
@ -788,7 +789,7 @@ func (bot *CQBot) CQGetStatus() MSG {
|
|||||||
"plugins_good": nil,
|
"plugins_good": nil,
|
||||||
"app_good": true,
|
"app_good": true,
|
||||||
"online": bot.Client.Online,
|
"online": bot.Client.Online,
|
||||||
"good": true,
|
"good": bot.Client.Online,
|
||||||
"stat": bot.Client.GetStatistics(),
|
"stat": bot.Client.GetStatistics(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user