This commit is contained in:
cdle
2023-06-29 22:05:09 +08:00
parent 70bf5a33a6
commit 9c09a5588b
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -191,11 +191,13 @@ func GetAdapterBotPlts() []string {
}
func (f *Factory) Init(botplt, botid string, params map[string]interface{}) {
// fmt.Println(params)
if params != nil {
if _, ok := params["umod"]; ok {
f.umod = true
}
}
// fmt.Println("umod", f.umod)
f.ctx, f.cancel = context.WithCancel(context.Background())
BotsLocker.Lock()
defer BotsLocker.Unlock()