From 5863e67149ebf608ebb36f6ca01c99757caad629 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 25 May 2019 22:37:54 +0800 Subject: [PATCH] test --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 02acf4b..b37689e 100644 --- a/bot.go +++ b/bot.go @@ -231,7 +231,7 @@ func botListParsingRule(m *tb.Message) { if r.MatchString(m.Payload) { i, _ := strconv.ParseInt(m.Payload, 10, 64) for _, v := range msgParsingRules { - if v.ID == int64(i) { + if int64(v.ID) == i { c := TGCommand{ Type: commandReplyMsg, Text: fmt.Sprintf("%s\n", v.rule),