test
This commit is contained in:
parent
720a1c2fb5
commit
d215767dfc
1
bot.go
1
bot.go
@ -270,7 +270,6 @@ func botListParsingRule(m *tb.Message) {
|
||||
}
|
||||
|
||||
func botTimer(m *tb.Message) {
|
||||
var res string
|
||||
r := regexp.MustCompile("^(?P<Delay>([0-9]{2}h){0,1}([0-9]{2}m){0,1}([0-9]{2}s){0,1}) \"(?<Msg>(.*))\"$")
|
||||
if r.MatchString(m.Payload) {
|
||||
log.Printf("Timer : Delay : %s\n", r.ReplaceAllString(m.Payload, "${Delay}"))
|
||||
|
Loading…
Reference in New Issue
Block a user