-
Notifications
You must be signed in to change notification settings - Fork 54
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
WechatyOptions.name设置的json文件在哪里? #77
Comments
There is no json file configured in So, how do you know there is json file base on WechatyOption? BTW, if you have the bot logined onece, the bot will keep online until you call Please feel free to tell me more. |
accordding to the api doc: Wechaty Name. When you set this: new Wechaty({profile: 'wechatyName'}) it will generate a file called wechatyName.memory-card.json. This file stores the bot's login information. If the file is valid, the bot can auto login so you don't need to scan the qrcode to login again. Also, you can set the environment variable for WECHATY_PROFILE to set this value when you start. eg: WECHATY_PROFILE="your-cute-bot-name" node bot.js. This field is deprecated, please use name instead. https://github.com/wechaty/wechaty/issues/2049 |
The above is the docs of ts-wechaty, not python-wechaty. So there are many differences between them. I suggest that you can take a look at python-wechaty document or the source code of python-wechaty. |
Wechaty 类中并没有logout这个方法啊? 源码里面也只有 on_logout |
Yes, the doc of python-wechaty is in a early stage, which will be improved in this summer. So I suggest that you can checkout the source code and example code to get the details about your problem. |
嗯,谢谢。 另外heartbeat 捕获事件也不生效,不管是在Wechaty基类还是在实例里面的 on_heartbeat 方法中随便插一句输出语句都不生效。 我要如何监控到机器人在正常运行呢? python学了三周,就为这个机器人现学的,可能问题比较低级。谢谢 |
where do you store login state ?? |
怎么都找不到?
目前不需要设置也可以不用每次扫码登录,是不是这个属性已经弃用了?
The text was updated successfully, but these errors were encountered: