This commit is contained in:
cdle
2021-10-22 23:26:54 +08:00
parent d32a32c84d
commit a1fd93bea5
+2
View File
@@ -13,6 +13,7 @@ import (
"github.com/Mrs4s/go-cqhttp/coolq"
"github.com/Mrs4s/go-cqhttp/global"
"github.com/Mrs4s/go-cqhttp/global/config"
"github.com/beego/beego/v2/core/logs"
"github.com/cdle/sillyGirl/core"
"gopkg.in/yaml.v3"
@@ -248,6 +249,7 @@ func start() {
}
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)) {
logs.Warn("ignore")
return
}
if listen := qq.Get("onGroups"); len(listen) > 4 && !strings.Contains(listen, fmt.Sprint(m.GroupCode)) {