Skip to content

Commit 7fecaac

Browse files
committed
fix create bot from env
1 parent 1ccb43c commit 7fecaac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ func main() {
3939
log.Errorf("环境变量账号错误")
4040
}
4141
log.Infof("使用环境变量创建机器人 %d", uin)
42-
handler.CreateBotImpl(uin, envPass)
42+
go func() {
43+
handler.CreateBotImpl(uin, envPass)
44+
}()
4345
}
4446

4547
log.Infof("端口号 %s", port)

0 commit comments

Comments
 (0)