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") -> None: 15 """メイン処理""" 16 m = adapter.parser() 17 m.parser({"event": {"text": g.args.text}}) 18 19 # キーワード処理 20 libs.dispatcher.by_keyword(m)
15def main(adapter: "ServiceAdapter") -> None: 16 """メイン処理""" 17 m = adapter.parser() 18 m.parser({"event": {"text": g.args.text}}) 19 20 # キーワード処理 21 libs.dispatcher.by_keyword(m)
メイン処理