Skip to content

Commit

Permalink
fix create bot from env
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Oct 16, 2020
1 parent 1ccb43c commit 7fecaac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ func main() {
log.Errorf("环境变量账号错误")
}
log.Infof("使用环境变量创建机器人 %d", uin)
handler.CreateBotImpl(uin, envPass)
go func() {
handler.CreateBotImpl(uin, envPass)
}()
}

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

0 comments on commit 7fecaac

Please sign in to comment.