set bot instance to WechatyPlugin Args: bot (Wechaty): the instance of Wechaty
(self, bot: Wechaty)
| 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""" |