Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
删除二进制文件
Browse files Browse the repository at this point in the history
  • Loading branch information
bypanghu committed Jun 3, 2021
1 parent 0fef1bb commit 712e1b7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Binary file removed OPQBot-QQGroupManager
Binary file not shown.
30 changes: 15 additions & 15 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,20 +194,20 @@ func main() {
})
return
}
if m, err := regexp.MatchString(c.ShutUpWord, packet.Content); err != nil {
log.Println(err)
return
} else if m {
err := b.ReCallMsg(packet.FromGroupID, packet.MsgRandom, packet.MsgSeq)
if err != nil {
log.Println(err)
}
err = b.SetForbidden(1, c.ShutUpTime, packet.FromGroupID, packet.FromUserID)
if err != nil {
log.Println(err)
}
return
}
//if m, err := regexp.MatchString(c.ShutUpWord, packet.Content); err != nil {
// log.Println(err)
// return
//} else if m {
// err := b.ReCallMsg(packet.FromGroupID, packet.MsgRandom, packet.MsgSeq)
// if err != nil {
// log.Println(err)
// }
// err = b.SetForbidden(1, c.ShutUpTime, packet.FromGroupID, packet.FromUserID)
// if err != nil {
// log.Println(err)
// }
// return
//}
if v, _ := regexp.MatchString(`[0-9]{6}`, packet.Content); v {
VerifyLock.Lock()
if v1, ok := VerifyNum[strconv.FormatInt(packet.FromUserID, 10)+"|"+strconv.FormatInt(packet.FromGroupID, 10)]; ok {
Expand Down Expand Up @@ -580,7 +580,7 @@ func main() {
return
}
for mid, v1 := range c.Fanjus {
ups += fmt.Sprintf("%d - %s-订阅用户为:%s \n", mid, v1.Title,v1.UserId)
ups += fmt.Sprintf("%d - %s-订阅用户为:%d \n", mid, v1.Title,v1.UserId)
}
b.SendGroupTextMsg(packet.FromGroupID, ups)
}
Expand Down

0 comments on commit 712e1b7

Please sign in to comment.