Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion bin/io-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,16 @@ async function main () {
console.info(welcome)
log.info('Client', 'Starting for WECHATY_TOKEN: %s', token)

const wechaty = WechatyBuilder.build({ name: token })
const uosEnabled = process.env['WECHATY_PUPPET_WECHAT_UOS_ENABLE'] === 'true'
if (uosEnabled) {
log.info('Client', 'Enable UOS support for WECHATY_PUPPET_WECHAT')
}
const wechaty = WechatyBuilder.build({
name: token,
puppetOptions: {
uos: uosEnabled,
},
})

let port
if (process.env['WECHATY_PUPPET_SERVER_PORT']) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"wechaty-puppet": "^1.20.1",
"wechaty-puppet-service": "^1.19.8",
"wechaty-puppet-wechat4u": "^1.11.1",
"wechaty-puppet-wechat": "^1.18.4",
"wechaty-token": "^1.1.1",
"ws": "^8.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/puppet-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const OFFICIAL_PUPPET_DEPENDENCIES = {
/**
* WeChat Puppets
*/
'wechaty-puppet-wechat' : '>=1.11.8', // https://www.npmjs.com/package/wechaty-puppet-wechat
'wechaty-puppet-wechat' : '>=1.18.4', // https://www.npmjs.com/package/wechaty-puppet-wechat
'wechaty-puppet-wechat4u' : '>=1.11.1', // https://www.npmjs.com/package/wechaty-puppet-wechat4u
'wechaty-puppet-padlocal' : '>=1.11.13', // https://www.npmjs.com/package/wechaty-puppet-padlocal
'wechaty-puppet-xp' : '>=1.10.2', // https://www.npmjs.com/package/wechaty-puppet-xp
Expand Down