Skip to content

Commit

Permalink
fix inconsistant bahaviour compared to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma authored Nov 22, 2020
1 parent 2057e76 commit 9d5842f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coolq/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,14 +781,15 @@ func (bot *CQBot) CQSetGroupPortrait(groupId int64, file, cache string) MSG {
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 {
return OK(MSG{
"app_initialized": true,
"app_enabled": true,
"plugins_good": nil,
"app_good": true,
"online": bot.Client.Online,
"good": true,
"good": bot.Client.Online,
"stat": bot.Client.GetStatistics(),
})
}
Expand Down

0 comments on commit 9d5842f

Please sign in to comment.