From e9a780496f7ce067e0d8d51ce1d62e48c9f2a8d9 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 19 Sep 2024 14:44:33 +0800 Subject: feat(core): Implement Service class and related functionalities Co-authored-by: yuzhe --- examples/config.toml | 6 +++++- examples/rules/COC/__init__.py | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/config.toml b/examples/config.toml index 4e5e2fe..40eafd3 100644 --- a/examples/config.toml +++ b/examples/config.toml @@ -1,2 +1,6 @@ [core] -rule_dirs = ["rules"] \ No newline at end of file +rule_dirs = ["rules"] +services = ['hrc.service.http'] + +[service.http] +port = 8080 \ No newline at end of file diff --git a/examples/rules/COC/__init__.py b/examples/rules/COC/__init__.py index 260bfb5..215d662 100644 --- a/examples/rules/COC/__init__.py +++ b/examples/rules/COC/__init__.py @@ -10,7 +10,6 @@ from .Command import Command core = Core() - class COC7(Rule): # 规则、指令、词条,必须至少实现任意一个 -- cgit v1.2.3-70-g09d2