mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
fix input.
This commit is contained in:
parent
d1372332f3
commit
9b36645b73
@ -99,7 +99,7 @@ func (s *webServer) Run(addr string, cli *client.QQClient) *coolq.CQBot {
|
||||
func (s *webServer) Dologin() {
|
||||
s.Console = bufio.NewReader(os.Stdin)
|
||||
readLine := func() (str string) {
|
||||
_, _ = fmt.Scanf("%s", &str)
|
||||
str, _ = s.Console.ReadString('\n')
|
||||
return
|
||||
}
|
||||
conf := GetConf()
|
||||
|
Loading…
x
Reference in New Issue
Block a user