From 805feca79153cc1668e33be3997cfcca87919af0 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 10 May 2019 19:05:25 +0800 Subject: [PATCH] test --- bot.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.go b/bot.go index 4be0e4d..bc4c948 100644 --- a/bot.go +++ b/bot.go @@ -3,6 +3,7 @@ package main import ( "fmt" tb "gopkg.in/tucnak/telebot.v2" + "regexp" "time" ) @@ -88,7 +89,7 @@ func botMsgRescan(m *tb.Message) (string, error) { if r.MatchString(m.Payload) { return "Rescaning msg #" + m.Payload, nil } - r := regexp.MustCompile("^all$") + r = regexp.MustCompile("^all$") if r.MatchString(m.Payload) { return "Rescaning all msg", nil }