diff options
| author | 2023-12-14 18:25:38 +0800 | |
|---|---|---|
| committer | 2023-12-14 18:25:38 +0800 | |
| commit | 4943d5eff52a75caaccda6a1d84183032f06be26 (patch) | |
| tree | 9946503f651e69b6310aee3781afe858b769bee9 | |
| parent | c559e35fb99733c60ab97e536aa10fac59766f55 (diff) | |
| download | infini-4943d5eff52a75caaccda6a1d84183032f06be26.tar.gz infini-4943d5eff52a75caaccda6a1d84183032f06be26.zip | |
:sparkles: 更新文档
| -rw-r--r-- | README.md | 12 | ||||
| -rw-r--r-- | codehere.bat | 2 |
2 files changed, 13 insertions, 1 deletions
@@ -68,7 +68,17 @@ `process`函数应当返回一个`Result`对象,它应当包含一个消息事件名(例如示例中的`event1`),该消息事件名应当在 `MyRule\event.py` 中被注册。消息事件的动态内容通过`{name}`的方式声明并通过`name="内容"`的方式实现。 -3. 合理修改你的 `config.toml` 配置文件,完成注册! +3. 创建你的测试文件 + + 在 `MyRule\tests.py` 中的 `test` 函数中给出测试函数,并返回一个 `list`,应当包含所有异常内容。 + +4. 测试你的规则包 + + 执行指令: + + ```bash + python -m infini test MyRule + ``` ### 🎍Sites diff --git a/codehere.bat b/codehere.bat new file mode 100644 index 00000000..976c1ef2 --- /dev/null +++ b/codehere.bat @@ -0,0 +1,2 @@ +@echo off +code .
\ No newline at end of file |
