test
This commit is contained in:
parent
546f9bcdfe
commit
9bb6c314ec
2
bot.go
2
bot.go
@ -231,7 +231,7 @@ func botListParsingRule(m *tb.Message) {
|
|||||||
if r.MatchString(m.Payload) {
|
if r.MatchString(m.Payload) {
|
||||||
i, _ := strconv.ParseInt(m.Payload, 10, 64)
|
i, _ := strconv.ParseInt(m.Payload, 10, 64)
|
||||||
for _, v := range msgParsingRules {
|
for _, v := range msgParsingRules {
|
||||||
if v.ID == i {
|
if v.ID == int64(i) {
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
Text: fmt.Sprintf("%s\n", v.rule),
|
Text: fmt.Sprintf("%s\n", v.rule),
|
||||||
|
Loading…
Reference in New Issue
Block a user