update
This commit is contained in:
+6
-6
@@ -247,12 +247,12 @@ func start() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
OnGroupMessage := func(_ *client.QQClient, m *message.GroupMessage) {
|
OnGroupMessage := func(_ *client.QQClient, m *message.GroupMessage) {
|
||||||
// if ignore := qq.Get("offGroups", "654346133&923993867"); strings.Contains(ignore, fmt.Sprint(m.GroupCode)) {
|
if ignore := qq.Get("offGroups", "654346133&923993867"); len(ignore) > 4 && strings.Contains(ignore, fmt.Sprint(m.GroupCode)) {
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
// if listen := qq.Get("onGroups"); listen != "" && !strings.Contains(listen, fmt.Sprint(m.GroupCode)) {
|
if listen := qq.Get("onGroups"); len(listen) > 4 && !strings.Contains(listen, fmt.Sprint(m.GroupCode)) {
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
core.Senders <- &Sender{
|
core.Senders <- &Sender{
|
||||||
Message: m,
|
Message: m,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user