master
Bel LaPointe 2023-03-27 06:14:52 -06:00
parent 26f052d981
commit f14871218d
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ func (v01 *V01) serveGlobalQueryRefresh(r *http.Request) {
func (v01 *V01) serveGM(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path {
case "/gm/rpc/publicStatus":
yaml.NewEncoder(w).Encode(map[string]interface{}{
"Players": len(v01.cfg.Players),
})
panic("TODO")
case "/gm/rpc/markMessageRead":
v01.cfg.Quiet = true