MCPcopy
hub / github.com/wechaty/python-wechaty / handle_login

Function handle_login

examples/contact-bot.py:61–65  ·  view source on GitHub ↗

Handle the login event

(user: Contact)

Source from the content-addressed store, hash-verified

59
60
61async def handle_login(user: Contact) -> None:
62 """Handle the login event"""
63 log.info('%s logged in', user.name)
64 await user.say('wechaty contact-bot just logged in')
65 await display_contacts()
66
67
68async def main() -> None:

Callers

nothing calls this directly

Calls 2

display_contactsFunction · 0.85
sayMethod · 0.45

Tested by

no test coverage detected