diff options
| author | 2024-09-19 14:44:33 +0800 | |
|---|---|---|
| committer | 2024-09-19 14:44:33 +0800 | |
| commit | e9a780496f7ce067e0d8d51ce1d62e48c9f2a8d9 (patch) | |
| tree | a3e31e07fd001baa1cfce9ceebcdfed58b50bcda /examples | |
| parent | 9e18d7ebf7a17bb7d7d169da3a3cefde0956a9f9 (diff) | |
| download | HydroRollCore-e9a780496f7ce067e0d8d51ce1d62e48c9f2a8d9.tar.gz HydroRollCore-e9a780496f7ce067e0d8d51ce1d62e48c9f2a8d9.zip | |
feat(core): Implement Service class and related functionalities
Co-authored-by: yuzhe <YUZHEthefool@users.noreply.github.com>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/config.toml | 6 | ||||
| -rw-r--r-- | examples/rules/COC/__init__.py | 1 |
2 files changed, 5 insertions, 2 deletions
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): # 规则、指令、词条,必须至少实现任意一个 |
