This commit is contained in:
shoopea 2020-07-19 16:58:27 +02:00
parent 8614823e7c
commit 9852ec56ff

2
bot.go
View File

@ -1592,7 +1592,7 @@ func botTimer(m *tb.Message) {
} }
r = regexp.MustCompile("^(?P<User>([0-9]+)(?P<Duration>([0-9]*(s|m|h))+) \"(?P<Msg>(.*))\"$") r = regexp.MustCompile("^(?P<User>([0-9]+)) (?P<Duration>([0-9]*(s|m|h))+) \"(?P<Msg>(.*))\"$")
if r.MatchString(m.Payload) { if r.MatchString(m.Payload) {
if clt.TGUserID64 != cfg.Bot.Admin { if clt.TGUserID64 != cfg.Bot.Admin {
c := TGCommand{ c := TGCommand{