Commit 9b36645b authored by Mrs4s's avatar Mrs4s

fix input.

parent d1372332
...@@ -99,7 +99,7 @@ func (s *webServer) Run(addr string, cli *client.QQClient) *coolq.CQBot { ...@@ -99,7 +99,7 @@ func (s *webServer) Run(addr string, cli *client.QQClient) *coolq.CQBot {
func (s *webServer) Dologin() { func (s *webServer) Dologin() {
s.Console = bufio.NewReader(os.Stdin) s.Console = bufio.NewReader(os.Stdin)
readLine := func() (str string) { readLine := func() (str string) {
_, _ = fmt.Scanf("%s", &str) str, _ = s.Console.ReadString('\n')
return return
} }
conf := GetConf() conf := GetConf()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment