aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/README.md
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-06-25 09:45:46 +0800
committerGitHub <noreply@github.com>2023-06-25 09:45:46 +0800
commita3c3882cee4b270e3dfd8dadc607176f49b0cfed (patch)
treecbe3022887455cf416f7ee39b5dab456232195f0 /README.md
parent0e4a3657ce2f42044772acb3078cf39d2fc3c336 (diff)
downloadinfini-a3c3882cee4b270e3dfd8dadc607176f49b0cfed.tar.gz
infini-a3c3882cee4b270e3dfd8dadc607176f49b0cfed.zip
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 2142d870..b3c98048 100644
--- a/README.md
+++ b/README.md
@@ -33,13 +33,13 @@ echo.> config.toml && echo.> __init__.py :: 创建空的配置文件和python运
在 `__init__.py` 创建一个 `rule` 实例并继承 `Rule` 基类, 通过编写合适的相关方法与类注册规则包实现规则的自定义。
``` python
-from hydrorollcore import Rule
+from HydroRollCore import Rules
-class rule(Rule):
- ...
+class Myrule(Rules):
+ """自设规则包,继承 Rules 基类"""
-class Wiki(rule):
- ...
+class Wiki(Myrule):
+ """wiki 词条类,继承 Myrule 类"""
```
3. 合理修改你的 `config.toml` 配置文件,完成注册!