MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / abort

Function abort

plugin/chess/core.go:57–62  ·  view source on GitHub ↗

abort 中断对局

(groupCode int64)

Source from the content-addressed store, hash-verified

55
56// abort 中断对局
57func abort(groupCode int64) (message.Message, error) {
58 if room, ok := chessRoomMap.Load(groupCode); ok {
59 return abortGame(*room, groupCode, "对局已被管理员中断, 游戏结束。")
60 }
61 return nil, errNotExist
62}
63
64// draw 和棋
65func draw(groupCode, senderUin int64) (msg message.Message, err error) {

Callers 1

initFunction · 0.85

Calls 1

abortGameFunction · 0.85

Tested by

no test coverage detected