integrations.standard_io.events.handler

integrations/standard_io/events/handler.py

 1"""
 2integrations/standard_io/events/handler.py
 3"""
 4
 5from typing import TYPE_CHECKING
 6
 7import libs.dispatcher
 8import libs.global_value as g
 9
10if TYPE_CHECKING:
11    from integrations.standard_io.adapter import ServiceAdapter
12
13
14def main(adapter: "ServiceAdapter"):
15    """メイン処理"""
16
17    m = adapter.parser()
18    m.parser({"event": {"text": g.args.text}})
19
20    # キーワード処理
21    libs.dispatcher.by_keyword(m)
def main(adapter: integrations.standard_io.adapter.ServiceAdapter):
15def main(adapter: "ServiceAdapter"):
16    """メイン処理"""
17
18    m = adapter.parser()
19    m.parser({"event": {"text": g.args.text}})
20
21    # キーワード処理
22    libs.dispatcher.by_keyword(m)

メイン処理