1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 12:03:50 +08:00

Update websocket.go

This commit is contained in:
Ink33 2020-11-17 13:57:28 +08:00
parent 8f34003c6f
commit beb1a2883a

View File

@ -487,7 +487,7 @@ var wsApi = map[string]func(*coolq.CQBot, gjson.Result) coolq.MSG{
delay = 0 delay = 0
} }
defer func(delay int64) { defer func(delay int64) {
time.Sleep(time.Duration(delay) * time.Milliseconds) time.Sleep(time.Duration(delay) * time.Millisecond)
Restart <- struct{}{} Restart <- struct{}{}
}(delay) }(delay)
return coolq.MSG{"data": nil, "retcode": 0, "status": "async"} return coolq.MSG{"data": nil, "retcode": 0, "status": "async"}