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

Cannot receive heartbeat msg #62

Open
willin opened this issue Jan 20, 2022 · 1 comment
Open

Cannot receive heartbeat msg #62

willin opened this issue Jan 20, 2022 · 1 comment

Comments

@willin
Copy link
Member

willin commented Jan 20, 2022

//     "wechaty-plugin-contrib": "0.19"
  bot.use(
    Heartbeat({
      contact: 'willinx',
      emoji: {
        heartbeat: '[爱心]',
        login: '[太阳]',
        logout: '[月亮]',
        ready: '[拳头]'
      },
      intervalSeconds: 5
    })
  );

image

Logs:

WECHATY_LOG=silly npx ts-node src/index.ts | grep Heartbeat
12:43:04 VERB WechatyPluginContrib Heartbeat("{"contact":"willinx","emoji":{"heartbeat":"[爱心]","login":"[太阳]","logout":"[月亮]","ready":"[拳头]"},"intervalSeconds":5}")
12:43:04 VERB WechatyPluginContrib Heartbeat installing on Wechaty#2ed9be83-1c86-4c46-a91c-13cb8d7b8d89<Puppet#1<PuppetPadlocal>(NONAME)>() ...
12:43:04 VERB WechatyPluginContrib Heartbeat setting `ready` event
12:43:04 VERB WechatyPluginContrib Heartbeat setting `logout` event
12:43:06 VERB WechatyPluginContrib Heartbeat wechaty.on(login)
12:43:06 VERB WechatyPluginContrib Heartbeat talkerList numbers: 1
12:43:06 VERB WechatyPluginContrib Heartbeat heart()...
12:43:06 SILL WechatyPluginContrib Heartbeat heart() new timer set
12:43:06 VERB WechatyPluginContrib Heartbeat sayEmoji(login)
12:43:06 VERB WechatyPluginContrib Heartbeat getEmoji(login)
12:43:07 SILL [LongLink] [43:8410] longlink stopHeartbeat
12:43:07 WARN [PadLocalClient] 
================================================================================
WARNING: Your token will be expired on: "2022/01/24". Please renew ASAP to avoid
                              service termination.
================================================================================

12:43:07 VERB WechatyPluginContrib Heartbeat sayEmoji(ready)

nenver got ready/heartbeat message

@huan
Copy link
Member

huan commented Mar 1, 2022

The ready event will be depends on the puppet provider/implementation, and the heartbeat event will be emitted once every hour if I remember correctly.

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

2 participants