MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / set_bot

Method set_bot

src/wechaty/plugin.py:473–479  ·  view source on GitHub ↗

set bot instance to WechatyPlugin Args: bot (Wechaty): the instance of Wechaty

(self, bot: Wechaty)

Source from the content-addressed store, hash-verified

471 return None
472
473 def set_bot(self, bot: Wechaty) -> None:
474 """set bot instance to WechatyPlugin
475
476 Args:
477 bot (Wechaty): the instance of Wechaty
478 """
479 self.bot = bot
480
481 async def init_plugin(self, wechaty: Wechaty) -> None:
482 """set wechaty to the plugin"""

Callers 1

startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected