test
This commit is contained in:
parent
9bb6c314ec
commit
5863e67149
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 == int64(i) {
|
if int64(v.ID) == 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