From c06b94e8d9d14227edff9fffe126f1945e95954f Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 2 Jun 2019 18:57:42 +0800 Subject: [PATCH] test --- obj.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/obj.go b/obj.go index 8df8a4b..234ec60 100644 --- a/obj.go +++ b/obj.go @@ -495,8 +495,12 @@ func getObjItemID(s string) int64 { i := v.(ChatWarsItem) return i.ObjID64 } else { - s := fmt.Sprintf("Object unknown : %s\n", s) - clientSendCWMsg(cfg.Bot.Admin, s) + w := TGCommand{ + Type: commandSendMsg, + Text: fmt.Sprintf("Object unknown : %s\n", s), + ToUserID64: cfg.Bot.Admin, + } + TGCmdQueue <- w return 0 } }