bot.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:asif 作者: minus7 项目源码 文件源码
def on_join(self, channel: str=None) -> Callable[[Callable], Callable]:
        """
        Register a handler that's called after a channel is joined.
        The handler is called with the `Channel` as argument, must be a coroutine
        and is run non-blocking.
        :param channel: channel to look out for or `None` for all channels
        """
        def decorator(fn: Callable[[self.IrcMessage], None]):
            jh = self.JoinHandler(channel, fn)
            self._on_join_handlers.append(jh)
            self._log.debug("Added join handler {}".format(jh))
            return fn

        return decorator
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号