From 562e72199852ddaccb6a3882528d1986382c330b Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 27 Jan 2020 14:06:48 +0800 Subject: [PATCH] update --- job.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/job.go b/job.go index 19a38af..fa5185f 100644 --- a/job.go +++ b/job.go @@ -1842,7 +1842,12 @@ func jobCraftItem(j Job) { } } else { if obj.Craftable { - log.Printf("Item missing recipe : %s\n", code) + w := TGCommand{ + Type: commandSendMsg, + Text: fmt.Sprintf("Item missing recipe : %s\n", code), + ToUserID64: cfg.Bot.Admin, + } + TGCmdQueue <- w } missingItems[code] = req - ava }