update
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ func handleMessage(sender Sender) {
|
|||||||
reg, err := regexp.Compile(v)
|
reg, err := regexp.Compile(v)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if reg.FindString(sender.GetContent()) != "" {
|
if reg.FindString(sender.GetContent()) != "" {
|
||||||
if !sender.IsAdmin() {
|
if !sender.IsAdmin() && sender.GetImType() != "wx" {
|
||||||
sender.Delete()
|
sender.Delete()
|
||||||
sender.Reply("本妞清除了不好的消息~", time.Duration(time.Second))
|
sender.Reply("本妞清除了不好的消息~", time.Duration(time.Second))
|
||||||
recalled = true
|
recalled = true
|
||||||
|
|||||||
+1
-1
@@ -248,7 +248,7 @@ func start() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
OnGroupMessage := func(_ *client.QQClient, m *message.GroupMessage) {
|
OnGroupMessage := func(_ *client.QQClient, m *message.GroupMessage) {
|
||||||
if ignore := qq.Get("offGroups", "654346133&923993867&833022151"); len(ignore) > 4 && strings.Contains(ignore, fmt.Sprint(m.GroupCode)) {
|
if ignore := qq.Get("offGroups", "654346133&923993867"); len(ignore) > 4 && strings.Contains(ignore, fmt.Sprint(m.GroupCode)) {
|
||||||
logs.Warn("ignore")
|
logs.Warn("ignore")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user