diff --git a/bot.go b/bot.go index 1131a4c..e7ffc99 100644 --- a/bot.go +++ b/bot.go @@ -270,7 +270,6 @@ func botListParsingRule(m *tb.Message) { } func botTimer(m *tb.Message) { - var res string r := regexp.MustCompile("^(?P([0-9]{2}h){0,1}([0-9]{2}m){0,1}([0-9]{2}s){0,1}) \"(?(.*))\"$") if r.MatchString(m.Payload) { log.Printf("Timer : Delay : %s\n", r.ReplaceAllString(m.Payload, "${Delay}"))