Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init 后会打开扫码的网页? #601

Closed
cmzz opened this issue Jun 24, 2017 · 1 comment
Closed

init 后会打开扫码的网页? #601

cmzz opened this issue Jun 24, 2017 · 1 comment

Comments

@cmzz
Copy link

cmzz commented Jun 24, 2017

环境 macos

code:
cat mybot.js

const { Wechaty } = require('wechaty')
const bot = Wechaty.instance()

bot
.on('scan', (url, code) => console.log(`Scan QR Code to login: ${code}\n${url}`))
.on('login',       user => console.log(`User ${user} logined`))
.on('message',  message => console.log(`Message: ${message}`))
.init()

运行后,会启动 chrome 并打开 https://wx.qq.com/, 扫码后终端提示登录成功。 但关闭chrome后,命令行也报错了。

是这样的吗?能完全的在终端运行吗? 不启动chrome。

@cmzz
Copy link
Author

cmzz commented Jun 24, 2017

image

@cmzz cmzz closed this as completed Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant