This commit is contained in:
cdle
2023-06-29 21:18:50 +08:00
parent 7ea4710d16
commit d2c599dd68
4 changed files with 119 additions and 15 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ func init() {
chans: make(map[string]chan string),
}
adapter := &core.Factory{}
adapter.Init("qq", botID)
adapter.Init("qq", botID, nil)
defer adapter.Destroy()
adapter.SetGroupKick(func(uid string, gid string, reject_add_request bool) bool {
qqcon.WriteJSON(CallApi{
+1 -1
View File
@@ -77,7 +77,7 @@ var GetUserNumber = func() int {
func initWebBot() {
if adapter == nil {
adapter = &core.Factory{}
adapter.Init("web", "default")
adapter.Init("web", "default", nil)
adapter.SetIsAdmin(func(s string) bool {
isAdmin, ok := webAdmins.Load(s)
if ok {