Open
Description
From the above code, we can see that we are checking the WECHATY_PUPPET_SERVICE_TOKEN
in our end user's code.
I'd like to move this checking code into the Python Wechaty module inside, which will make everything clear:
- the user can provide a
token
asoptions
to Wechaty, this will override any environment variables that already set. - If the user did not provide token as
options
to Wechaty, then the module will use the environment variableWECHATY_PUPPET_SERVICE_TOKEN
See also: TS Wechaty Puppet Service source code: