console.handle¶
处理流相关接口¶
- melobot.protocols.console.handle.on_event(checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.console.adapter.event.Event'>,), bool] = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, rule: ~melobot.session.option.Rule[~melobot.protocols.console.adapter.event.Event] | None = None) FlowDecorator[源代码]¶
- melobot.protocols.console.handle.on_input(checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.console.adapter.event.StdinEvent'>,), bool] = None, matcher: ~melobot.utils.match.base.Matcher | None = None, parser: ~melobot.utils.parse.base.Parser | None = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, rule: ~melobot.session.option.Rule[~melobot.protocols.console.adapter.event.Event] | None = None) FlowDecorator[源代码]¶
- 参数:
- 返回类型: