diff --git a/ica-rs/plugins/md5/md5-api.mts b/ica-rs/plugins/md5/md5-api.ts similarity index 100% rename from ica-rs/plugins/md5/md5-api.mts rename to ica-rs/plugins/md5/md5-api.ts diff --git a/ica-rs/plugins/md5/runs.mts b/ica-rs/plugins/md5/runs.ts similarity index 88% rename from ica-rs/plugins/md5/runs.mts rename to ica-rs/plugins/md5/runs.ts index 8a11829..cdf613a 100644 --- a/ica-rs/plugins/md5/runs.mts +++ b/ica-rs/plugins/md5/runs.ts @@ -1,7 +1,7 @@ const fs = require('fs'); const path = require('path'); -import { fight } from "./md5-api.mts"; +import { fight } from "./md5-api"; // 从文件的 ./input.txt 中读取输入 // 然后丢给 md5.js diff --git a/ica-rs/plugins/namerena.py b/ica-rs/plugins/namerena.py index 979b958..ca1b083 100644 --- a/ica-rs/plugins/namerena.py +++ b/ica-rs/plugins/namerena.py @@ -43,7 +43,7 @@ def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None: with open(root_path / "md5" / "input.txt", "w") as f: f.write(names) # 执行 node md5.js - runner_path = root_path / "md5" / "runs.mts" + runner_path = root_path / "md5" / "runs.ts" input_path = root_path / "md5" / "input.txt" result = subprocess.run( ["node", runner_path.absolute(), input_path.absolute()],