From 9b0402d210ed465ad3f013805549e910a6dbe0a0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 21 Jan 2021 16:36:44 +0100 Subject: [PATCH] fix --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 9eb884a..5367a44 100644 --- a/bot.go +++ b/bot.go @@ -863,7 +863,7 @@ func botBrewItem(m *ChatWarsMessage, r *regexp.Regexp) { Status: 0, } - p.ObjItemID64 = getObjItemID(r.ReplaceAllString(m.Text, "${Code}")) + p.ObjItemID64 = getObjItemID(r.ReplaceAllString(m.Text, "${Code}"), "") fmt.Printf("Code[%s] : %d\n", r.ReplaceAllString(m.Text, "${Code}"), p.ObjItemID64)