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
@@ -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 {