linyimin0812 / wechaty-puppet-ioscat

Puppet Ios Cat for Wechaty
https://www.npmjs.com/package/wechaty-puppet-ioscat
Apache License 2.0
37 stars 11 forks source link

Stuck on exmaple #3

Closed huan closed 6 years ago

huan commented 6 years ago

Can not receive a login event.

$ WECHATY_LOG=silly npm run example

> wechaty-puppet-ioscat@0.4.1 example /home/zixia/chatie/wechaty-puppet-ioscat
> ts-node examples/test.ts

01:36:39 SILL Config WECHATY_LOG set level to silly
01:36:39 INFO Config registering process.on("unhandledRejection") for development/debug
01:36:39 VERB Config constructor()
01:36:39 VERB Puppet constructor({"token":"wxid_tdax1huk5hgs12"}) #0
01:36:39 VERB StateSwitch constructor(name=PuppetIoscat)
01:36:39 VERB MemoryCard constructor()
01:36:39 VERB Puppet constructor() watchdog timeout set to 60 seconds
01:36:39 VERB HotImport callerResolve(., /home/zixia/chatie/wechaty-puppet-ioscat/node_modules/wechaty-puppet/dist/src/puppet.js)
01:36:39 SILL HotImport callerResolve() callsites() file=/home/zixia/chatie/wechaty-puppet-ioscat/node_modules/hot-import/dist/src/hot-import.js, type=Object
01:36:39 SILL HotImport callerResolve() callsites() file=/home/zixia/chatie/wechaty-puppet-ioscat/node_modules/wechaty-puppet/dist/src/puppet.js, type=null
01:36:39 SILL HotImport callerResolve() callsites() file=/home/zixia/chatie/wechaty-puppet-ioscat/src/puppet-ioscat.ts, type=null
01:36:39 SILL HotImport callerResolve() callerFile=/home/zixia/chatie/wechaty-puppet-ioscat/src/puppet-ioscat.ts
01:36:39 VERB Puppet constructor() childClassPath=/home/zixia/chatie/wechaty-puppet-ioscat/src
01:36:39 SILL Accessory #0<Wechaty> constructor()
01:36:39 VERB Wechaty contructor()
01:36:39 VERB MemoryCard constructor(default)
01:36:39 VERB StateSwitch constructor(name=Wechaty)
01:36:39 VERB StateSwitch constructor(name=WechatyReady)
01:36:39 VERB Wechaty on(login, function) registered
01:36:39 VERB Wechaty onFunction(login)
01:36:39 VERB Wechaty on(message, function) registered
01:36:39 VERB Wechaty onFunction(message)
01:36:39 SILL Wechaty version() form development environment is not availble: ENOENT: no such file or directory, stat '/home/zixia/chatie/wechaty-puppet-ioscat/node_modules/wechaty/dist/.git'
01:36:39 INFO Wechaty <Puppet#0<PuppetIoscat>()> start() v0.19.123 is starting...
01:36:39 VERB Wechaty puppet: Puppet#0<PuppetIoscat>()
01:36:39 VERB Wechaty profile: default
01:36:39 VERB Wechaty id: cjke9tu8d0000sn31bq24s1r4
01:36:39 SILL StateSwitch <Wechaty> on() is false
01:36:39 SILL StateSwitch <WechatyReady> off() is true
01:36:39 VERB StateSwitch <WechatyReady> off(true) <- (true)
01:36:39 SILL StateSwitch <Wechaty> on() is false
01:36:39 VERB StateSwitch <Wechaty> on(pending) <- (false)
01:36:39 VERB MemoryCard load() file: /home/zixia/chatie/wechaty-puppet-ioscat/default.memory-card.json
01:36:39 VERB MemoryCard load() file not exist, NOOP
01:36:39 VERB Wechaty initPuppet() Puppet#0<PuppetIoscat>()
01:36:39 WARN MemoryCard sub() DEPRECATED, use multiplex() instead
01:36:39 VERB MemoryCard multiplex(puppet)
01:36:39 VERB MemoryCard static multiplex(MemoryCard<default>, puppet)
01:36:39 VERB MemoryCard constructor(default)
01:36:39 VERB PuppetManager resolve({wechaty: Wechaty#cjke9tu8d0000sn31bq24s1r4<Puppet#0<PuppetIoscat>()>(default), puppet: Puppet#0<PuppetIoscat>(), puppetOptions: undefined})
01:36:39 VERB PuppetManager resolveInstance(Puppet#0<PuppetIoscat>())
01:36:39 VERB Puppet setMemory()
01:36:39 VERB Wechaty initPuppetEventBridge(Puppet#0<PuppetIoscat>(default))
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(friendship) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(login) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(logout) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(message) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(room-invite) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(room-join) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(room-leave) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(room-topic) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(scan) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(dong) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(error) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(ready) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(reset) registered
01:36:39 VERB Wechaty initPuppetEventBridge() puppet.on(watchdog) registered
01:36:39 VERB Wechaty initAccessory(Puppet#0<PuppetIoscat>(default))
01:36:39 SILL Accessory <Contact> static set wechaty = "Wechaty#cjke9tu8d0000sn31bq24s1r4<Puppet#0<PuppetIoscat>(default)>(default)"
01:36:39 SILL Accessory <ContactSelf> static set wechaty = "Wechaty#cjke9tu8d0000sn31bq24s1r4<Puppet#0<PuppetIoscat>(default)>(default)"
01:36:39 SILL Accessory <Friendship> static set wechaty = "Wechaty#cjke9tu8d0000sn31bq24s1r4<Puppet#0<PuppetIoscat>(default)>(default)"
01:36:39 SILL Accessory <Message> static set wechaty = "Wechaty#cjke9tu8d0000sn31bq24s1r4<Puppet#0<PuppetIoscat>(default)>(default)"
01:36:39 SILL Accessory <Room> static set wechaty = "Wechaty#cjke9tu8d0000sn31bq24s1r4<Puppet#0<PuppetIoscat>(default)>(default)"
01:36:39 SILL Accessory <RoomInvitation> static set wechaty = "Wechaty#cjke9tu8d0000sn31bq24s1r4<Puppet#0<PuppetIoscat>(default)>(default)"
01:36:39 SILL Accessory <Contact> static set puppet = "Puppet#0<PuppetIoscat>(default)"
01:36:39 SILL Accessory <ContactSelf> static set puppet = "Puppet#0<PuppetIoscat>(default)"
01:36:39 SILL Accessory <Friendship> static set puppet = "Puppet#0<PuppetIoscat>(default)"
01:36:39 SILL Accessory <Message> static set puppet = "Puppet#0<PuppetIoscat>(default)"
01:36:39 SILL Accessory <Room> static set puppet = "Puppet#0<PuppetIoscat>(default)"
01:36:39 SILL Accessory <RoomInvitation> static set puppet = "Puppet#0<PuppetIoscat>(default)"
01:36:39 SILL Accessory <Wechaty> set puppet = "Puppet#0<PuppetIoscat>(default)"
01:36:39 VERB PuppetIoscat start()
01:36:39 SILL StateSwitch <PuppetIoscat> on() is false
01:36:39 VERB StateSwitch <PuppetIoscat> on(pending) <- (false)
01:36:39 SILL topic:undefined im.topic.13.wxid_tdax1huk5hgs12
01:36:42 SILL IMSink Connect success
01:36:43 SILL 获取消息队列通道成功 

BTW: I can log in your account right after cloning this repository because you hardcoded your wxid in the code.

huan commented 6 years ago

Good to know you had solved this.

Leave a reply to comment the latest update or the reason before you close an issue will be a good practice.