1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 20:13:50 +08:00

fix input.

This commit is contained in:
Mrs4s 2020-10-17 16:57:49 +08:00
parent d1372332f3
commit 9b36645b73

View File

@ -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()