aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/config.toml6
-rw-r--r--examples/rules/COC/__init__.py1
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):
# 规则、指令、词条,必须至少实现任意一个